index.html:73 Uncaught TypeError: Cannot read property 'getElementsByTagName' of null at window.onload (index.html:73)?
按照老师的的写法,出现上面的错误提示
<script>
function $(id){
return typeof id==='string'?document.getElementById(id):id;
}
window.onload=function(){
var titles=$('notice-tit').getElementsByTagName('li');
<script>
zeusGOGOGO
慕哥7122903
qq_一梦两三年丶_0
Stardust1001
相关分类