I am trying to register module in dojo. I register one module in this way.
djConfig="parseOnLoad: true, isDebug: false, modulePaths: {'module': '../../module'}
How can I register another module?
You can try this:
<script language="JavaScript" type="text/javascript" src="/Path/To/Dojo.js" djConfig="isDebug:false,parseOnLoad:true></script>
<script language="JavaScript" type="text/javascript">
dojo.registerModulePath("module1",'../../module1');
dojo.registerModulePath("module2",'../../module2');
dojo.registerModulePath("module3",'../../module3');
</script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.