function stopDefault(e) { if(e && e.preventDefault) { e.preventDefault(); } else { window.event.returnValue = false; } return false; } 阻止浏览器默认事件。