requirejs 調用dojo的時候會有版本問題把requirejs版本變爲2.1.8web
請求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>
requirejs
方法2;在網站下面的編輯中選擇添加頭,或者是在右側瀏覽那個東西,選擇添加一個文件
網站