事件兼容

event = event ? event : window.event; 

js停止冒泡·

window.event? window.event.cancelBubble = true : event.stopPropagation();

js阻止默认行为

window.event? window.event.returnValue = false : event.preventDefault();
05-26 02:05