0

Have to execute scripts using spidermonkey(jagermonkey) javascript engine availalble within XULRunner.The javascript has some dependent Javascript libraries like requriejs/commonjs etc.

RequireJS provides documentation for Rhino/NodeJS javascript runtime environment.The documentation or testcases does not suggest anything about Spidermonkey scripting environment. Is it possible to use requirejs with Spidermonkey?Any pointers on how to go about it ?

I am using the javascript runtime packaged within XULRunner 2.0.

4

1 回答 1

0

特别是对于 XULRunner,您可以查看Firebug 代码——它嵌入了带有适配器的 requirejs,以便在 XUL 中运行。

于 2011-08-14T07:44:55.197 回答