requirejs 调用dojo的时候会有版本问题把requirejs版本变为2.1.8
请求dijit的时候会有跨域问题,这个时候要在iis中的根目录下创建一个web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
方法2;在网站下面的编辑中选择添加头,或者是在右侧浏览那个东西,选择添加一个文件