我寫了一個新的應用程序,它將使用現有的主題,該主題將由設計人員更改。ScriptBundle(「〜/ Scripts/vendor」)
所以我決定,而不是把在腳本中的腳本和其他一切內容(CSS,圖像),只保留在主題文件夾中的主題(與子目錄 - JS,CSS,IMG)
所以我嘗試更改腳本捆綁指向我的劇本在主題/ JS來代替腳本
我改成了
bundles.Add(
new ScriptBundle("~/Scripts/vendor")
.Include("~/Theme/js/jquery-{version}.js")
.Include("~/Theme/js/knockout-{version}.debug.js")
.Include("~/Theme/js/sammy-{version}.js")
.Include("~/Theme/js/toastr.js")
.Include("~/Theme/js/Q.js")
.Include("~/Theme/js/breeze.debug.js")
.Include("~/Theme/js/bootstrap.js")
.Include("~/Theme/js/moment.js")
);
我不明白的是線
new ScriptBundle("~/Scripts/vendor")
如果我離開它這是上面(即使沒有腳本/供應商的文件夾,代碼工作不錯,但F I將其更改爲
new ScriptBundle("~/Theme/js/vendor")
我收到網絡錯誤的螢火:
"NetworkError: 404 Not Found - http://localhost:51154/scripts/vendor"
其餘的腳本未加載。
那條線是幹什麼的?
由於
謝謝,我編輯和添加了錯誤味精 – bzamfir 2013-04-24 16:10:05
右鍵,呈現當時我並沒有改變DLE。這樣做解決了問題 – bzamfir 2013-04-24 16:11:58