摘要: 防止冒泡和捕获 w3c 方法:e.stopPropagation() IE方法:e.cancelBubble = true html: <div onclick='alert("div出发");'> <ul onclick='alert("ul触发");'> <li id="li">test</li 阅读全文
posted @ 2020-04-11 10:11 Mr.渣、 阅读(1316) 评论(0) 推荐(0) 编辑