0
为了更好地组织Javascript,我对之前的工作XHTML文档进行了一些更改,现在Sid.js在尝试将Javascript文档附加到头部时遇到了问题。卡在Sid.js中很愚蠢的东西
在Chrome中我得到
Uncaught TypeError: Cannot read property 'appendChild' of undefined
在此行中Sid.js
scope.appendChild(node);
的问题是,
scope = (scope ? (scope == 'body' ? body : head) : (type == 'js' ? body : head));
是不确定的。
任何人都知道为什么这可能是?