e.preventDefault() e.stopPropagation()和return false的区别

e.preventDefault(); //阻止事件的默认行为,比如a标签的转向,但不阻止事件的冒泡传播
e.stopPropagation() //阻止事件的冒泡传播,但不阻止其默认行为
returne false; //阻止两者
posted @ 2016-02-06 17:31  瓜王  阅读(3238)  评论(0编辑  收藏  举报