Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要让用户戳网站上的元素,几乎就像 Firebug 作为开发人员一样。有谁知道在 JavaScript 或 YUI 或 jQuery 之类的库中执行此操作的简单方法?
用jQuery
$("*").click(function(e){ // do something (eg: console.log(this);) e.preventDefault(); return false; });