$(document).click(function(){
$("#ztreeDiv").hide();
});
$("#ztreeDiv").click(function(event){
event.stopPropagation();
});
除了点击某个元素外,其他都执行某事件
最新推荐文章于 2024-03-14 14:56:27 发布
$(document).click(function(){
$("#ztreeDiv").hide();
});
$("#ztreeDiv").click(function(event){
event.stopPropagation();
});