js阻止事件冒泡

2019-11-07  本文已影响0人  Stonesy
div.onclick = function (e) {

e.stopPropagation();//阻止事件冒泡

}
上一篇 下一篇

猜你喜欢

热点阅读