关于html引用外部JS的getElementsByTagName报错问题
javascript - 关于html引用外部JS文件报错问题 - SegmentFault
js使用getElementsByTagName报错_百度知道
alert(document.getElementsByTagName().innerHTML);报错undefined
...Cannot call method 'getElementsByTagName' of nul..._百度知道
关于html引用外部JS文件报错问题 - zonxin的回答 - SegmentFault
HTML DOM getElementsByTagName() 方法