浏览器控制台中没有命令行解释器
no command line interpreter in Browser Console
根据此页面 https://developer.mozilla.org/en-US/docs/Tools/Browser_Console 我的浏览器控制台 (Ctrl+Shift+j) 应该有命令行解释器,但它没有。我的浏览器是 Firefox 稳定版 69.0.3。此功能是否仅在 Firefox Developer Edition 中可用?
我刚遇到这个问题,但找到了解决方案。 mozilla website 上有一条小注释:
NB: The Browser Console command line (to execute JavaScript expressions) is disabled by default. To enable it set the devtools.chrome.enabled
preference to true
in about:config, or set the "Enable browser chrome and add-on debugging toolboxes" (Firefox 40 and later) option in the developer tool settings.
Ctrl+Shift+I - 打开网络开发工具。
F1 - 打开首选项
然后在右下方有一个勾选框,上面写着 "Enable browser chrome and add-on debugging toolboxes"。这需要打开。
根据此页面 https://developer.mozilla.org/en-US/docs/Tools/Browser_Console 我的浏览器控制台 (Ctrl+Shift+j) 应该有命令行解释器,但它没有。我的浏览器是 Firefox 稳定版 69.0.3。此功能是否仅在 Firefox Developer Edition 中可用?
我刚遇到这个问题,但找到了解决方案。 mozilla website 上有一条小注释:
NB: The Browser Console command line (to execute JavaScript expressions) is disabled by default. To enable it set the
devtools.chrome.enabled
preference totrue
in about:config, or set the "Enable browser chrome and add-on debugging toolboxes" (Firefox 40 and later) option in the developer tool settings.
Ctrl+Shift+I - 打开网络开发工具。
F1 - 打开首选项
然后在右下方有一个勾选框,上面写着 "Enable browser chrome and add-on debugging toolboxes"。这需要打开。