Javascript mootools和script.js在同一页面上发生冲突

Javascript mootools和script.js在同一页面上发生冲突,javascript,jquery,mootools,Javascript,Jquery,Mootools,我正在为一个网站开发一个小部件,它在许多自己的Javascript中都有mootools。 我的小部件使用script.js库动态加载Java脚本。这大致是这样的: <div id="id-which-will-never-intersect-with-any-other"></div> <script src="http://mydomain.com/config.js" type="text/javascript"> :( 上面提到的38行是承载scri

我正在为一个网站开发一个小部件,它在许多自己的Javascript中都有mootools。 我的小部件使用script.js库动态加载Java脚本。这大致是这样的:

<div id="id-which-will-never-intersect-with-any-other"></div>
<script src="http://mydomain.com/config.js" type="text/javascript">
:(

上面提到的38行是承载script.js本身的文件

我真的不想在iframe中提供我们的应用程序,我也很满意script.js的工作。 你能推荐可能的解决方案吗

下面是script.js的repo:


谢谢!

切换到另一个框架lab.js,问题就解决了:
这里管理依赖关系的方式更加清晰。

我还尝试使用script.js的未压缩版本-同样的问题:(
Uncaught TypeError: Cannot read property 'every' of undefined
(anonymous function)mootools.js:7
rconfig.js:6
rconfig.js:6