摘要: 3种方法 1、在父元素事件的function中加if(event.target==this){ } event.target为事件的目标2、子元素事件function最后加event.stopPropgation();// 阻止事件冒泡3、简单点,直接在子元素事件function最后加return 阅读全文
posted @ 2017-02-21 10:41 =DLSS=webZT 阅读(307) 评论(0) 推荐(0) 编辑