【发布时间】:2013-06-27 04:08:22
【问题描述】:
有没有一种方法可以在 Chrome 的控制台中设置 javascripting,这样它就不会在我点击返回时立即处理我的语句。如果我想通过在那里编写一些 javascript 来测试某些东西,它会在我完成编写之前进行处理。
//here I am writing in the console
if ($(el).size() === 0){
//now I hit return because I want to type some stuff if this evaluates to true
//but return submits it as a finished piece of javascript and of course
//I get SyntaxError: Unexpected end of input before I can have a chance
//to finish the logic
我知道我可以点击 shift+return 并获得换行符,虽然这有点不便,但仍然有点不便。无论如何我可以告诉它推迟处理,直到我点击像 shift+return 这样的宏?
在 Firebug 中也是如此。也许那里有一个选择。或者也许有人知道一个好的第三方插件。谢谢。
【问题讨论】:
标签: javascript google-chrome firebug google-chrome-devtools