jQuery 1.4.2 VSDoc

前端 未结 15 513
夕颜
夕颜 2020-12-02 14:12

Where can I get the VSDoc for jQuery 1.4.2?

相关标签:
15条回答
  • 2020-12-02 15:06

    FWIW, you can generate for jQuery versions 1.4.2 and above using the online tool hosted at http://damianedwards.com/vsdoc

    Also, the jQuery packages in NuGet contain vsdoc files generated using this tool.

    This tool actually scrapes the official API documentation from api.jquery.com and merges it with the actual jQuery object in (browser) memory, rather than trying to do source merging. It's not 100% perfect, but it's very close (much closer than the old approach).

    Also, judging by some of the answers and comments here, some people are actually reference the vsdoc file from their web pages. Do not do this. The vsdoc file is specifically built to service Visual Studio IntelliSense and will not work correctly in the browser. Just reference the actual jQuery file (or the .min version) and Visual Studio will automatically find the .vsdoc file version alongside it (including if you reference it from a CDN).

    0 讨论(0)
  • 2020-12-02 15:10

    Looks like they have added the 1.4.2 to the JQuery download page:

    http://docs.jquery.com/Downloading_jQuery

    NM was looking in the wrong spot

    0 讨论(0)
  • 2020-12-02 15:13

    John T said:

    For what it's worth, and from this question:

    jQuery 1.4.3 vsdoc

    Someone has updated the jQuery vsdoc for JQuery 1.4.3. It's at:

    http://appendto.com/community/vsdoc

    @John T: Thanks for the links!

    For users of the v1.4.4 VSDOC file supplied here, there is a slight error that breaks IntelliSense; at line 1751 the file reads:

    jQuery.proxy = function(function, context){

    This causes Visual Studio to show the following error:

    Error updating JScript IntelliSense: <your path>\jquery-1.4.4-vsdoc.js: Expected identifier @ 1750:24 (or near enough).

    Update this line to read:

    jQuery.proxy = function(method, context){

    This bug was found and resolved in VS2008.

    0 讨论(0)
提交回复
热议问题