📅  最后修改于: 2022-03-11 15:00:09.253000             🧑  作者: Mango
window.onclick = function(event) {
var target = event.target;
console.log(target.matches);
//console.log(event);
if (target.matches('.clickableBtn')) {
alert('Called Classsname clickableBtn');
}
if (target.matches('#qidirish')){
alert('Called identifer qidirish');
}
}