$(document).bind("click", function(e) {
var target = $(e.target);
if (target.closest("#id").length == 0) { //点击id之外的地方触发
//要实现的代码
}
})
$(document).bind("click", function(e) {
var target = $(e.target);
if (target.closest("#id").length == 0) { //点击id之外的地方触发
//要实现的代码
}
})
相关文章: