阻止默认行为stopDefault

function stopDefault(e){
if(e && e.preventDefault)
e.preventDefault();
else
window.event.returnValue = false;     //ff?
return false;
};

原文地址:https://www.cnblogs.com/rainbow661314/p/3210890.html