<div class="div1"></div> <div class="div1"></div> <div class="div1"></div> <div class="div1"></div> <div class="div1"></div> <div class="div1"></div> <div class="div1"></div> <script type="text/javascript"> var div=document.querySelectorAll(".div1") div.onclick=function(){ console.log(aaaa) } </script>
添加回答
举报
0/150
提交
取消