让你的firefox直接支持Jquery的调试
很喜欢精致小巧的jquery,Learning Jquery介绍了几种在firefox中集合firebug调试网页的方法,确实很方便.
在此整理一下:
1.为jquery添加bookmarked
这个方法很简单,只要添加一个书签,在地址栏里输入如下代码
HTML:
-
javascript:var%20s=document.createElement(’script’);s.setAttribute(’src’,%20′http://jquery.com/src/jquery-1.0.4.js‘);document.getElementsByTagName(’body’)[0].appendChild(s);alert(’thank you for using jquery!’);void(s);
每次需要调试网页的时候,只要点击一下这个链接,就可以在firebug的console中用$(xxx)这样的jquery的方法调用网页中的各种元素,试验你的javascript代码了。
当然,你也可以直接将下面的链接拖到firefox的收藏夹或工具条中,以方便调用。
> jQuerify<

原文:http://www.learningjquery.com/2006/12/jquerify-bookmarklet
2.如果你已经安装了Greasemonkey的话
您可以直接在user script网站,输入jquery查询,就能获得已经有人写好的包含jquery的脚本。将其应用于你需要调试的网站即可,这篇文章可以作为一个参考:http://joanpiedra.com/jquery/greasemonkey/










April 3rd, 2008 at 9:01 pm
Leave these people alone! We have democracy, so all men and women do what they want, and they don’t care what you think!
April 7th, 2008 at 3:13 am
I have been visiting sources like that lately. That’s the most important point of everything. That’s why I can professionally say that this information is objective and sounds true to me
April 9th, 2008 at 6:34 pm
Fortunately, it’s still funny.