摘要: js中存在事件冒泡,当点击clickSetting时,stopEvent和showSetting事件也会按顺序从内到外依次触发,通过stopEvent可以阻止事件继续冒泡,所以showSetting不会再出发,stopEvent内部可以自由处理业务逻辑。当点击stopEvent区域之外时,就会触发s 阅读全文
posted @ 2021-04-12 21:36 木-鱼 阅读(297) 评论(0) 推荐(0) 编辑