代码如下:
var e = event || window.event;
if (e.stopPropagation) {
//W3C阻止冒泡方法
e.stopPropagation();
} else {
//IE阻止冒泡方法
e.cancelBubble = true;
}
代码如下:
var e = event || window.event;
if (e.stopPropagation) {
//W3C阻止冒泡方法
e.stopPropagation();
} else {
//IE阻止冒泡方法
e.cancelBubble = true;
}