📅  最后修改于: 2022-03-11 15:04:31.135000             🧑  作者: Mango
代码示例2
$(document).click((event) => {
if (!$(event.target).closest('#element').length) {
// the click occured outside '#element'
}
});