gpt4 book ai didi

dojo - 将 dojo 1.8 与 requirejs 一起使用

转载 作者:行者123 更新时间:2023-12-04 20:47:43 26 4
gpt4 key购买 nike

有没有人有将 dojo 1.8 与 requrejs 集成的经验?
如果我使用 requrejs 加载 dojo/dijit/dojox,它会抛出一些关于 has.js 无法正常工作的异常。

TypeError: _3.add is not a function
_3.add("dom-addeventlistener",!!document.addEventListener);

最佳答案



http://requirejs.org/docs/dojo.html

As of Dojo 1.8, Dojo has converted their modules to AMD modules. However, Dojo uses some loader plugins, and the loader plugin APIs are still in draft mode for AMD. So while some modules from Dojo can be used with RequireJS, it will be difficult to use all of Dojo. It is best to use Dojo's AMD loader until ticket 15616 has been resolved.



http://bugs.dojotoolkit.org/ticket/15616

关于dojo - 将 dojo 1.8 与 requirejs 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14711102/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com