阻止冒泡函数
function stopBubble(e) { if(e & e.stopPropagation()) { e.stopPropagation() }else { // IE window.event.cancelBubble = true } }
本文共 218 字,大约阅读时间需要 1 分钟。
阻止冒泡函数
function stopBubble(e) { if(e & e.stopPropagation()) { e.stopPropagation() }else { // IE window.event.cancelBubble = true } }
转载于:https://www.cnblogs.com/liangshuang/p/8473945.html