摘要: 一、事件冒泡 方法一、使用event.cancelBubble = true来阻止冒泡 方法二:使用vue自带的方法阻止冒泡 拓展:事件修饰符 参考API:http://cn.vuejs.org/v2/guide/events.html#事件修饰符 在事件处理程序中调用 event.preventD 阅读全文
posted @ 2017-12-14 20:06 夏至有你 阅读(567) 评论(0) 推荐(0) 编辑