I know you can do it for jQuery using jQuery.noConflict. Is there a way to do something similar with Dojo?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.