$("body,html").on("click",function (e) {
let type = e.target;
if(type.className != "header-menu" && type.parentNode.className != "header-menu"){
$(".t-menu").slideUp();
}
});
转载于:https://www.cnblogs.com/n-p-c/p/10234248.html
$("body,html").on("click",function (e) {
let type = e.target;
if(type.className != "header-menu" && type.parentNode.className != "header-menu"){
$(".t-menu").slideUp();
}
});
转载于:https://www.cnblogs.com/n-p-c/p/10234248.html