好吧,我想做的是有一个灯箱和一个滑动顶板。两者都使用 MooTools,而且似乎都使用不同的版本。
如果注释掉其中之一,尽管它们是实际的 MooTools 库的展位,但它不起作用。
<!a possible js config. either these two are commentented out, or the mootols.svn.js
<!-- libraries/frameworks for milkbox-->
<!--script type="text/javascript" src="js/mootools-1.2.3-core-yc.js"></script>
<script type="text/javascript" src="js/mootools-1.2.3.1-more.js"></script-->
<!-- mootools for the sliding top panel. should work also with the one imported above, so i was going to deactivate the one below-->
<script type="text/javascript" src="js/mootools.svn.js"></script>
<script type="text/javascript" src="js/milkbox.js"></script>
<script type="text/javascript" src="js/panel.js"></script>
因此,无论我注释掉哪一个(*-1.2.3-core-yc 和 -more.js 或 mootools.js),总是其中一个功能不起作用。
虽然它实际上应该是可能的,因为两者都是 MooTools。有人对此有解决方案吗?(我听说过命名空间这个词并且大致知道它的含义,但我不知道如何使用它)。
非常感谢提前,
本尼