简体   繁体   English

Visual Studio Asp.net MVC,主文件中包含的javascript智能

[英]Visual studio Asp.net mvc, intellisense for javascript included in master file

In the asp.net mvc project, while writing javascript in the each view, i wont be getting intellisense for javascripts referred to in the master page. 在asp.net mvc项目中,在每个视图中编写javascript时,我不会对母版页中提到的javascript有所了解。

Is there any way to get intellisense in the page other than directly referring the javascript. 除了直接引用javascript外,还有什么方法可以在页面中获得智能感知。

I know that in the external javascript files that i write, i will be able to get intellisense by putting 我知道,在我编写的外部javascript文件中,通过放置

/// <reference path="jquery-1.4.2.min.js" />
/// <reference path="jquery.tmpl.js" />
/// <reference path="knockout-1.2.1.js" />

If you go to this page , you can download the plugin to do documentation I'm pretty sure it works on all pages. 如果转到此页面 ,可以下载该插件来做文档,我很确定它可以在所有页面上使用。 Using vs2010 it automatically does it I believe. 我相信使用vs2010会自动做到。 Also this goes straight to the download , I should point out ScottGu's blog helped me on this. 这也直接用于下载 ,我应该指出ScottGu的博客对此有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM