javascript - 如何在 Firefox 中启用命令 js> shell?

标签 javascript shell firefox

命令 js> 应该是 Firefox 夜间构建的 native 版本(https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Introduction_to_the_JavaScript_shell)。但是当我打开终端 firefox 时,它说无法识别此命令。如何激活?

最佳答案

它不包含在 Firefox Nightly 构建中,但在构建过程中生成并作为 a separate download 提供。 (jsshell*).

获取与您的操作系统对应的文件,解压并在终端中运行:

jsshell-mac $ ./js 
js> 1 + 2
3

关于javascript - 如何在 Firefox 中启用命令 js> shell?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24533724/

相关文章:

Javascript 代码抛出异常 - 访问被拒绝。仅限 HTTPS。仅限 Internet Explorer

javascript - Angular 中 ng-repeat 元素之间的间隙

linux - shell脚本中调用函数

php - FFmpeg 文件转换超过最大执行时间

internet-explorer - 为什么 MTurk 沙盒仅在 Internet Explorer 中显示我的 HIT?

javascript - polymer 1.0 : Is there any way to use 'layout' as an attribute instead of as a CSS class or using Attribute serialization in the class attribute?

javascript - 带有 collection2 的 Meteor Autoform 包不提交表单

bash - 同时在屏幕和文件上显示标准输出

css - 边距在 Opera、Chrome 和 IE 中正确显示,但在 FF 中不正确

html - 对齐不适用于 firefox