查找在源中选择元素的位置 [英] Find where element is selected in source

查看:68
本文介绍了查找在源中选择元素的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以(Chrome扩展程序)在源JavaScript(或CSS)文件中搜索元素的所有选择?基本上,我想看看源代码在哪里修改了元素.例如,当单击一个按钮时. Chrome开发工具不会为搜索按钮绑定事件的绑定位置,而是会为我显示并向我显示.在Chrome开发工具或扩展程序中可以做到这一点吗?

Is the any way (Chrome Extension) search for all selections of an element in source JavaScript (or CSS for that matter) files? Basically, I want to see where the source code modifies the element. For example, when a button is clicked. Instead of searching for where the button clicked event is bound, Chrome Dev Tools would do it for me and show me. Is this possible within Chrome Dev Tools or an extension?

推荐答案

有而且很棒:)

在Windows上为CTRL-SHIFT-F,在Mac上为CMD-OPT-F. https://plus.google.com/115133653231679625609/posts/e4W2kdrFJY9

CTRL-SHIFT-F on Windows and CMD-OPT-F on Mac. https://plus.google.com/115133653231679625609/posts/e4W2kdrFJY9

享受!

这篇关于查找在源中选择元素的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆