javascript阻止冒泡事件与默认行为的方法 2017-07-31 本文已影响0人 xiaoaiai e.cancelBubble = true; //阻止冒泡 e.preventDefault(); //阻止默认行为 e.stopPropagation(); //阻止冒泡