阻止默认事件

e.stopPropagation(); // 阻止点击事件继续向上传播
e.preventDefault();  // 阻止链接的默认跳转行为

 

 
posted @ 2017-04-21 18:30  huihui2014  阅读(75)  评论(0)    收藏  举报