Correct way to reference Javascript in ASP.NET MVC?

前端 未结 5 1668
孤城傲影
孤城傲影 2020-12-29 07:27

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 {contro

5条回答
  •  情深已故
    2020-12-29 07:51

    I also reference js the same way as CMerat:

    
    

    If you need Intellisense for jquery, you can find instructions on how to set it up here. As far as i know, you cant get Intellisense for any custom js file you reference - you will need to create the Intellisense file for it first.

提交回复
热议问题