来这 能查看html元素绑定事件的工具,或者debug方法

WBOY
Release: 2016-06-13 11:05:52
Original
1245 people have browsed it

来这求一个 能查看html元素绑定事件的工具,或者debug方法。
工作中经常需要测试一些页面js代码,现在jquery等js框架应用中,都是动态绑定的事件,而不再是些onclick=""等,对于这种动态绑定事件,经常头痛找不到元素到底绑定了什么事件。

有没有什么方法能解决这个困扰呢?如果有浏览器插件也不错。
------解决方案--------------------
我只知道firebug,但似乎也沒辦法查看綁定.
------解决方案--------------------
只知道firebug,其它不知道了
------解决方案--------------------
放狗得到的:
http://www.sprymedia.co.uk/article/Visual+Event
http://www.softwareishard.com/blog/firebug/eventbug-alpha-released/
chrome自带的developer tools也可以

但是.....

都不完美
------解决方案--------------------
firebug就可以了,它可以查看你想要的任何HTML,JS事件
------解决方案--------------------

引用:
引用:
firebug就可以了,它可以查看你想要的任何HTML,JS事件


firebug看不到动态绑定事件啊,难道是我没用熟练?


firebug本身没有,上面我贴的那个是firebug的插件,装上会有一个新tab:event
------解决方案--------------------
引用:
引用:
放狗得到的:
http://www.sprymedia.co.uk/article/Visual+Event
http://www.softwareishard.com/blog/firebug/eventbug-alpha-released/
chrome自带的developer tools也可以

但是.....

都不完美

……


Visual+Event那个是拖那个按钮到你收藏夹,然后在你需要的网页上按它

------解决方案--------------------
还有,如果你的网页是jquery为主的,jquery里也有插件可以显示,上它网站找找
------解决方案--------------------
firedebug下试试

debug.log(domobj);
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!