jav*_*y79 8 javascript jquery rhino
我想通过这个链接证明的jQuery加载到犀牛这里.但我不断收到以下错误:
line 1086: uncaught JavaScript runtime exception: TypeError: Cannot call method "importNode" of null
Run Code Online (Sandbox Code Playgroud)
我认为jQuery无法完全加载 - 但我不知道为什么.我使用的是作者在源代码管理中发布的相同index.html文件.
这是我的Rhino控制台的跟踪:
js> load( "/temp/env.js" );
js> window.location = '/temp/index.html';
/temp/index.html
js> load( "/temp/jquery.js" );
js: "/temp/jquery.js", line 1086: uncaught JavaScript runtime exception: TypeError: Cannot call method "importNode" of null
at /temp/jquery.js:1086
at /temp/jquery.js:1079
at /temp/jquery.js:16
at <stdin>:41
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?