Firebug - how can I run multiline scripts or create a new JavaScript file?

谁说胖子不能爱 提交于 2019-12-05 17:13:06
Jason Bunting

Down in the lower-right corner of the FireBug UI you should see a red square icon with an up arrow. Use that and stretch it to a size you like.


maybe not within firebug, but you could try some techniques similar to the jQuery bookmarklet.

bookmarklet link

What about this idea:

Assuming your page can already have script tags that reference jQuery and a 'Script Include' jQuery plugin, then in the Console you could arbitrarily do:

$.include('http://example.com/scripts/some_script.js');

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!