我正在研究一個ASP.NET MVC5應用程序,我最近從VS2013切換到VS2012 這樣做後,我似乎得到這些錯誤在每一頁加載我的網站。Asp.Net mvc腳本找不到(404)
GET http://localhost:1360/Scripts/dhtmlxScheduler/sources/dhtmlxscheduler.js.map 404 (Not Found) :1360/Scripts/dhtmlxScheduler/sources/dhtmlxscheduler.js.map:1
GET http://localhost:1360/Scripts/dhtmlxScheduler/sources/ext/dhtmlxscheduler_limit.js.map 404 (Not Found) :1360/Scripts/dhtmlxScheduler/sources/ext/dhtmlxscheduler_limit.js.map:1
GET http://localhost:1360/Scripts/dhtmlxScheduler/sources/ext/dhtmlxscheduler_tooltip.js.map 404 (Not Found) :1360/Scripts/dhtmlxScheduler/sources/ext/dhtmlxscheduler_tooltip.js.map:1
GET http://localhost:1360/Scripts/dhtmlxScheduler/sources/ext/dhtmlxscheduler_serialize.js.map 404 (Not Found) :1360/Scripts/dhtmlxScheduler/sources/ext/dhtmlxscheduler_serialize.js.map:1
GET http://localhost:1360/Scripts/dhtmlxScheduler/sources/ext/dhtmlxscheduler_timeline.js.map 404 (Not Found) :1360/Scripts/dhtmlxScheduler/sources/ext/dhtmlxscheduler_timeline.js.map:1
對於文件路徑,腳本 - > dhtmlxScheduler - > 「源」 我沒有來源dhtmlxScheduler任何地方文件夾中。 我也不會有任何文件的結尾 「.js文件地圖」
這是我在我的視圖佈局:
<script src="@Url.Content("~/Scripts/dhtmlxScheduler/dhtmlxscheduler.js")" type="text/javascript" ></script>
<script src="@Url.Content("~/Scripts/dhtmlxScheduler/ext/dhtmlxscheduler_limit.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/dhtmlxScheduler/ext/dhtmlxscheduler_timeline.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.tooltipster.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/dhtmlxScheduler/ext/dhtmlxscheduler_serialize.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/dhtmlxScheduler/ext/dhtmlxscheduler_tooltip.js")" type="text/javascript"></script>
RouteConfig:
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
任何幫助將不勝讚賞。
謝謝! 我會接受你的話。 – 2014-11-06 16:54:58
爲了清楚起見,映射文件基本上是用於縮小腳本的翻譯。它允許開發人員的工具顯示實際的未經JS化的JS代碼,例如生成一個錯誤,而不是毫無幫助地告訴你,它在線上混亂的JS之一,因爲一切都在第一線;)。 – 2014-11-06 17:07:05
太棒了! 很好的解釋,謝謝! – 2014-11-06 17:15:29