原生js-----------addEventListener添加事件和直接添加事件区别
摘要:
1. a. document.querySelector("#a").onclick=function() {console.log("11111")} b. document.querySelector("#a").onclick=function(){console.log("222")} 结果 阅读全文
posted @ 2019-10-18 19:49 765427457 阅读(390) 评论(0) 推荐(0)
浙公网安备 33010602011771号