代码 function cancelBubble(e) { if (e.stopPropagation) { e.stopPropagation(); } else { e.cancelBubble = true; } }