javascript - Webstorm如何搜索jquery选择器获取的引用?

标签 javascript jquery html css webstorm

当你在引用上使用 ctrl+g 时,它会在同一个文件中找到你

是否有更全局的搜索(元素中的所有文件)来查找直接引用以及调用 jquery 以获取对对象的引用的那些地方?

最佳答案

您可以检查点击任何按钮或任何 html 元素上发生的事件。

您需要做的就是不用在 webstorm 中搜索它,您可以在 firebug 中准确地跟踪它。

请确保已安装 firebug 或在您的 firefox 或 chrome 浏览器中打开默认的开发人员工具。

查看元素上发生的事件:

right on the element and inspect it.

firebug will open up at the bottom of the browser and in the right-bottom corner you will find a box in which there are different tabs.

click on the events tab

you will see events such as click,mousehover....etc. check the function that is getting called by clicking on that function name and it will show you the line of code that is being executed when you click that particular element with the js file name and the line number.

希望对您有所帮助。

关于javascript - Webstorm如何搜索jquery选择器获取的引用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32548059/

相关文章:

javascript - 悬停时多个 vue 弹出窗口

html - 更改文本框中的文本会更改 IE 11 中的宽度

html - CSS HTML : stumped on how to center this piece of text

javascript - 是否可以使用 HTML 或 javascript 从两个不同的服务器获取文件

javascript - XHTML/JavaScript 动态内容未格式化

javascript - 缺少文字游戏(填空)

javascript - 当我使用另一个 iframe 时,如何从主页向 iframe 发送数据?

javascript - 在谷歌应用脚​​本中读取多个电子表格

jquery - 使用 jquery 按索引删除 XML 节点并写回文件

javascript - 来自对象内部的 Jquery Ajax 调用立即失败