我正在尝试查找控制模板中 span 元素的 jQuery 代码。
例如:
<span class="ccontent"
- 当鼠标悬停在该类上时,会打开一个信息窗口。
如何使用 Chrome 在我的模板中找到与此相关的 jQuery 代码以及它所在的文件?
最佳答案
尝试使用Visual Event 2
Visual Event is an open source Javascript bookmarklet which provides debugging information about events that have been attached to DOM elements. Visual Event shows:
- Which elements have events attached to them
- The type of events attached to an element
- The code that will be run with the event is triggered
- The source file and line number for where the attached function was defined (Webkit browsers and Opera only)
关于javascript - 定位 Span jQuery Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14241267/