Why is this “invalid calling object” error?

前端 未结 3 1636
执笔经年
执笔经年 2020-12-30 02:57

I write the following JS and run in IE 10:

function test() {
    var nodes = document.getElementsByTagName(\"h1\");
    document.writeln(nodes.length);
    f         


        
3条回答
提交回复
热议问题