阅读背景:

在ASP.NET MVC中引用Javascript的正确方法?

来源:互联网 

What is the correct way to reference Javascript in ASP.NET MVC? Using something like ../../Scripts/Myscript.js seems to work fine for routes that are the traditional {controller}/{action}/{id}, but are more fragile for anything more or less complex than that. Of greater concern is that the rational absolute reference (/Scripts/Myscript.js) breaks Intellisense in Visual Studio.What is the correct way to reference Javascript




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: