摘要: 经常遇到要给 html 中所有相同属性的元素添加同一个点击事件, 这里, 我需要给所有 type 属性为 "radio" 的 input 元素添加上相同的点击事件, 具体实现的 javascript 代码如下: // document.querySelectorAll("input[type='ra 阅读全文
posted @ 2020-12-05 19:28 ttweixiao9999 阅读(1046) 评论(0) 推荐(0) 编辑