让你的firefox直接支持Jquery的调试 Let your firefox direct support Jquery Debugging

2007年03月26日• 追风逐月 • 分类: 技术开发 , 网站建设 March 26, 2007 Herd monthly • • Category: technology development, construction site

很喜欢精致小巧的jquery, Learning Jquery介绍了几种在firefox中集合firebug调试网页的方法,确实很方便. Like refined compact jquery, Learning Jquery introduced in firefox in several firebug set debug pages, is indeed very convenient.
在此整理一下: Finishing about this:
1.为jquery添加bookmarked 1. Add bookmarked for jquery
这个方法很简单,只要添加一个书签,在地址栏里输入如下代码 This method is as simple as adding a bookmark, the following input in the address bar code

PLAIN TEXT PLAIN TEXT

HTML: HTML:

  1. javascript:var s=document.createElement(’script’);s.setAttribute(’src’, ′ http://jquery.com/src/jquery-1.0.4.js ‘);document.getElementsByTagName(’body’)[0].appendChild(s);alert(’thank you for using jquery!’);void(s); 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代码了。 Need to debug pages each time, as long as this link click on the console can be used in the firebug $ (xxx) such jquery the method invocation of the various page elements, the javascript you test the code.
当然,你也可以直接将下面的链接拖到firefox的收藏夹或工具条中,以方便调用。 Of course, you can also directly to the link below firefox dragged the folder or collection of tools, to facilitate the transfer.
> jQuerify < > JQuerify <
Jquerify

原文: http://www.learningjquery.com/2006/12/jquerify-bookmarklet Original: http://www.learningjquery.com/2006/12/jquerify-bookmarklet

2.如果你已经安装了Greasemonkey的话您可以直接在user script网站,输入jquery查询,就能获得已经有人写好的包含jquery的脚本。 2. If you have already installed Greasemonkey so you can direct the user script site, the importation of jquery enquiries, will be able to gain has already been written the script contains jquery. 将其应用于你需要调试的网站即可,这篇文章可以作为一个参考: http://joanpiedra.com/jquery/greasemonkey/ You need to be applied to the website of debugging can be, this article can be used as a reference: http://joanpiedra.com/jquery/greasemonkey/

标签: firefox , javascript , jquery Tags: firefox, javascript, jquery
本文链接: http://chyni.com/site-builder/firefox-jquery-debug.html This paper links: http://chyni.com/site-builder/firefox-jquery-debug.html

你可能还喜欢 You may also like



共有1人发表了评论» Issued a total of 1 comment »

  1. Leave these people alone! We have democracy, so all men and women do what they want, and they don’t care what you think! Leave these people alone! We have democracy, so all men and women do what they want, and they don't care what you think!

发表你的意见 Express your views

追风逐月 Zhuifeng monthly

提供网络赚钱、网赚经验、网赚工具、SEO、国外主机信息 The provision of the network to make money, Wangzhuan experience Wangzhuan tool, SEO, foreign host information
Herd monthly subscription blog feed
Subscribe to google Subscribe to Battery
Subscribe to the fresh fruit Subscribe to grasp shrimp
* 更多订阅本站方式请看订阅帮助 * See More Subscribe way to help subscribers