gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 11:23:59 24 4
gpt4 key购买 nike

当你在引用上使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com