google浏览器Event.path 109版本开始正式移除path
vue处理思路,使用refs定位事件元素,查找父元素或子元素,进行相应优化兼容;
this.$refs[e.target.value][0].firstChild.className = 'ant-checkbox-wrapper'
this.$refs[e.target.value][0].firstChild.firstChild.className = 'ant-checkbox'
参考
JS获取父节点、子节点、兄弟节点
https://blog.youkuaiyun.com/qq_44552416/article/details/113931949
chrome浏览器,删除 Event.path,引发报错
https://blog.youkuaiyun.com/qqjuanqq/article/details/128818816(这种方法也可行)

971

被折叠的 条评论
为什么被折叠?



