我可以将Dojo命名空间更改为dojo以外的其他名称吗? [英] Can I change the Dojo namespace to something other than dojo?
本文介绍了我可以将Dojo命名空间更改为dojo以外的其他名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
我相信你可以。请参阅关于在页面上运行多个版本的Dojo的此页面。它是非常有趣的,但似乎是你正在寻找的。 p>
一般来说,Dojo和jQuery都非常小心,不要让对方或任何其他人的变量名。
I know you can do it for jQuery using jQuery.noConflict. Is there a way to do something similar with Dojo?
解决方案
I believe you can. See this page about running more than one version of Dojo on a page. It's fiddly, but seems to be what you're looking for.
In general, both Dojo and jQuery have been quite careful not to clobber each other's or anyone else's variable names.
这篇关于我可以将Dojo命名空间更改为dojo以外的其他名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文