function stopDefault(e){
if(e && e.preventDefault)
e.preventDefault();
else
window.event.returnValue = false; //ff?
return false;
};
阻止默认行为stopDefault
推荐阅读
- Tuple的用法
- __flash__removeCallback 未定义错误
- springmvc与fastjson的整合,注解@RequestBody的使用
- jquery each循环遍历完再执行的方法 因为each是异步的 所以要加计数器.
- glyphicons-halflings-regular.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)解决Web部署 svg/woff/woff2字体 404错误
- s3cmd 安装使用指南
- Hadoop-2.0命令手册
- Java中Annotation用法
- @ControllerAdvice + @ExceptionHandler 全局处理 Controller 层异常
- 从上往下,从左往右