📅  最后修改于: 2022-03-11 14:59:21.445000             🧑  作者: Mango
window.addEventListener('mouseup', function(event){
var box = document.getElementById('box1');
if (event.target != box && event.target.parentNode != box){
box.style.display = 'none';
}
});