Webstorm 如何搜索 jquery 选择器获取的引用?
How to Webstorm search references acquired by jquery selectors?
当您在引用上使用 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.
希望对你有所帮助。
当您在引用上使用 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.
希望对你有所帮助。