HTML,js 点击目标以外的范围
/* 选择符(selector) */
$(document).on('click',function(e){
var target = $(e.target);
if(target.closest(selector).length == 0){
//这里写操作的事件
}
});
HTML,js 点击目标以外的范围
/* 选择符(selector) */
$(document).on('click',function(e){
var target = $(e.target);
if(target.closest(selector).length == 0){
//这里写操作的事件
}
});