JavaScript を実行
選択範囲をevalして結果をその場に出します。電卓代わりにどうぞ。
(挿入版)
// JavaScriptを実行.js
if (document.selection.Text) {
document.selection.Text = document.selection.Text + ' => ' + eval(document.selection.Text)
}
(置き換え版)
// JavaScriptを実行.js
if (document.selection.Text) {
document.selection.Text = eval(document.selection.Text)
}
スポンサーリンク