犀牛的jquery

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)

有任何想法吗?

jav*_*y79 5

我使用的是env.js文件的版本.事实证明,作者真的使用它并将其移动到它自己的网站等等.

新的东西在这里.

一旦我开始使用它,它就是jQuery 1.5的黄金.