errors

  1. ncaught TypeError: Cannot set properties of null (setting 'onclick') at tygg.html:26:19
    var box = document.querySelector("#box"); //获取button标签
    上面获取box的时候没有选择什么选择器,一直找不出来错误,一定要加#或者.
posted @ 2022-03-15 15:41  missSherry1014  阅读(203)  评论(0)    收藏  举报