停止冒泡

冒泡:事件会按照DOM的层次结构像水泡一样不断向上至顶端

event.stopPropagation()

或者

return false;

 

posted @ 2017-12-13 17:18  星空007  阅读(122)  评论(0)    收藏  举报