我已经在这里阅读了其他一些问题,并没有完全解决我的问题。 我已经阅读了所有可以找到的文档,似乎只是在同一目录中使用-vsdoc文件并以与我的jQuery文件相同的方式命名,足以让jQuery获得IntelliSense。
这适用于外部.js文件 - 我使用/// <reference />标签来使其正常工作。
我的问题是.asp文件,我包括jQuery。 这不起作用:
<script type="text/javascript" src="path-to/jquery-latest.min.js">下面这个确实有效,但是解决方案很糟糕,而且根本不知道我应该如何阅读它。
<script type="text/javascript" src="path-to/jquery-latest-vsdoc.min.js">任何人都有任何关于我可能做错的提示吗?
I've read through some of the other questions here on SO and haven't quite come across my problem. I've read all the documentation I can find, and it seems that merely having a -vsdoc file in the same directory and named in the same manner as my jQuery file is enough to get IntelliSense firing for jQuery.
This works for external .js files just fine - I use the /// <reference /> tag to get it working.
My problem is with .asp files that I am including jQuery on. This doesn't work:
<script type="text/javascript" src="path-to/jquery-latest.min.js">This below does work, but is a poor solution, and not at all how I've read it should work.
<script type="text/javascript" src="path-to/jquery-latest-vsdoc.min.js">Anyone have any tips on what I could be doing wrong?
最满意答案
根据这篇博文,在Visual Studio 2008(带有修补程序)及以上版本中,它会机会性地使用-vsdoc查找javascript文件。
它查找scriptname-vsdoc.js ,然后查找scriptname.debug.js然后查找scriptname.js 。 每个文件都需要///<reference />标记。
我也会查看这篇文章: 是否可以使用jQuery intellisense与经典的asp?
你有其他网站的链接吗?
According to this blog post, in Visual studio 2008 (with hotfix) and above it looks for the javascript file with -vsdoc opportunistically.
It looks for scriptname-vsdoc.js, then scriptname.debug.js then scriptname.js. And each file requires the ///<reference /> tag.
I would check out this post too: Is possible to use jQuery intellisense with classic asp?
Do you have any links for sites that say otherwise?
Visual Studio 2010中的jQuery Intellisense(jQuery Intellisense in Visual Studio 2010)我已经在这里阅读了其他一些问题,并没有完全解决我的问题。 我已经阅读了所有可以找到的文档,似乎只是在同一目录中使用-vsdoc文件并以与我的jQuery文件相同的方式命名,足以让jQuery获得IntelliSense。
这适用于外部.js文件 - 我使用/// <reference />标签来使其正常工作。
我的问题是.asp文件,我包括jQuery。 这不起作用:
<script type="text/javascript" src="path-to/jquery-latest.min.js">下面这个确实有效,但是解决方案很糟糕,而且根本不知道我应该如何阅读它。
<script type="text/javascript" src="path-to/jquery-latest-vsdoc.min.js">任何人都有任何关于我可能做错的提示吗?
I've read through some of the other questions here on SO and haven't quite come across my problem. I've read all the documentation I can find, and it seems that merely having a -vsdoc file in the same directory and named in the same manner as my jQuery file is enough to get IntelliSense firing for jQuery.
This works for external .js files just fine - I use the /// <reference /> tag to get it working.
My problem is with .asp files that I am including jQuery on. This doesn't work:
<script type="text/javascript" src="path-to/jquery-latest.min.js">This below does work, but is a poor solution, and not at all how I've read it should work.
<script type="text/javascript" src="path-to/jquery-latest-vsdoc.min.js">Anyone have any tips on what I could be doing wrong?
最满意答案
根据这篇博文,在Visual Studio 2008(带有修补程序)及以上版本中,它会机会性地使用-vsdoc查找javascript文件。
它查找scriptname-vsdoc.js ,然后查找scriptname.debug.js然后查找scriptname.js 。 每个文件都需要///<reference />标记。
我也会查看这篇文章: 是否可以使用jQuery intellisense与经典的asp?
你有其他网站的链接吗?
According to this blog post, in Visual studio 2008 (with hotfix) and above it looks for the javascript file with -vsdoc opportunistically.
It looks for scriptname-vsdoc.js, then scriptname.debug.js then scriptname.js. And each file requires the ///<reference /> tag.
I would check out this post too: Is possible to use jQuery intellisense with classic asp?
Do you have any links for sites that say otherwise?
发布评论