$(function(){ $(document).bind("click",function(e){ var target = $(e.target); if(target.closest(".pop").length == 0){ $(".pop").hide(); } }) })
<div class="pop"></div>
博客园 © 2004-2026 浙公网安备 33010602011771号 浙ICP备2021040463号-3