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.
如何捕获 jQuery 中任何元素的事件?显然$("*").click()行不通。对于被点击的任何元素等是否有某种选择器?
$("*").click()
尝试
$(document).on('click', function(){}) $("body").on('click', function(){})