为了账号安全,请及时绑定邮箱和手机立即绑定

求救,怎么回事?

window.onload = function () {

  //获取鼠标滑过或点击的标签和要切换内容的元素

  var titles = $('notice-tit').getElementsByTagName('li');

  var divs = $('notice-con').querySelectorAll('div');

  alert(titles.length)

}

bug这是啥意思?

script.js:9 Uncaught TypeError: Cannot read property 'querySelectorAll' of null

    at window.onload (script.js:9)


正在回答

举报

0/150
提交
取消

求救,怎么回事?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号