阻止js方法继续执行
1.阻止js方法继续执行,功能兼容IE,fireforx,chome的js方法
if (event.stopPropagation){
event.stopPropagation();
}else if (window.event) {
window.event.cancelBubble = true;
}
2.运用
防页面刷新
发布时间: 2012-07-02 17:46:22 作者: rapoo
阻止js方法继续执行
1.阻止js方法继续执行,功能兼容IE,fireforx,chome的js方法
if (event.stopPropagation){
event.stopPropagation();
}else if (window.event) {
window.event.cancelBubble = true;
}
2.运用
防页面刷新