DOM事件
作者:
饥人谷_目子夏 | 来源:发表于
2019-03-29 13:40 被阅读0次
总结

1
一个网址 getbootstrap
例子
第一个例子

css

html
如果在checkbox的父元素任何一层包括自己添加了阻止默认事件,那么这checkbox
就没有check

没用stop
解决方法一:

1

2

3
解决方法二:
阻止冒泡

1
第二个例子

1

2

3
http://js.jirengu.com/zayipuvafo/1/edit?html,js,output
本文标题:DOM事件
本文链接:https://www.haomeiwen.com/subject/tmykbqtx.html
网友评论