摘要: 我们平常使用 on+事件类型绑定事件,这种绑定是有缺陷的,如代码: btn.onclick=function(){ console.log(123); } btn.onclick=function(){ console.log(456); } 同类型的事件,只能绑定一次,因为直接赋值会将上面的值覆盖 阅读全文
posted @ 2020-03-15 19:43 Dawn2309 阅读(176) 评论(0) 推荐(1)