What is the _references.js used for?

后端 未结 2 1598
说谎
说谎 2020-12-04 13:55

What is the _references.js file used for in a new ASP.NET MVC 4 project?

相关标签:
2条回答
  • 2020-12-04 14:10

    In VS 11, Visual Studio will give you intellisense from all files that have references in the “_references.js” file.

    For More Info

    0 讨论(0)
  • 2020-12-04 14:12

    MSDN documentation: JavaScript IntelliSense

    In brief, _references.js stores the list of JS files paths, for which you want the Visual Studio to gather and build the intelisense (aka "code complete"). The VS project adds there some common JS libraries like jQuery to build the intellisense for it. You can add a reference to your custom JS file in form like this:

    /// <reference path="MyScriptFile.js" />
    
    0 讨论(0)
提交回复
热议问题