jQuery 1.4.2 VSDoc

ben*_*age 40 jquery vsdoc visual-studio

我在哪里可以获得jQuery 1.4.2的VSDoc?

Her*_*erb 27

冒险者可以从2949开始添加以下行:

delegate: function( selector, types, data, fn ) {
/// <summary>
///   Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. See also "live".
/// </summary>
/// <param name="selector" type="String">
///     An expression to search with.
/// </param>
/// <param name="types" type="String">
///     A string containing a JavaScript event type, such as "click" or "keydown".
/// </param>
/// <param name="data" type="Object">
///     A map of data that will be passed to the event handler.
/// </param>
/// <param name="fn" type="Function">
///     A function to execute at the time the event is triggered.
/// </param>
    return this.live( types, data, fn, selector );
},
undelegate: function( selector, types, fn ) {
/// <summary>
///   Remove a handler from the event for all elements which match the current selector, now or in the future, based upon a specific set of root elements. See also "die".
/// </summary>
/// <param name="selector" type="String">
///     An expression to search with.
/// </param>
/// <param name="types" type="String">
///     A string containing a JavaScript event type, such as "click" or "keydown".
/// </param>
/// <param name="data" type="Object">
///     A map of data that will be passed to the event handler.
/// </param>
/// <param name="fn" type="Function">
///     A function to execute at the time the event is triggered.
/// </param>
    if ( arguments.length === 0 ) {
            return this.unbind( "live" );

    } else {
        return this.die( types, null, fn, selector );
    }
},
Run Code Online (Sandbox Code Playgroud)

该文档几乎从jQuery网页和"live"和"die"的当前定义中删除,但可以根据需要随意调整.

另外,在第224行:

// The current version of jQuery being used
    jquery: "1.4.2",
Run Code Online (Sandbox Code Playgroud)

  • 我根据问题的所有答案创建了一个1.4.2版本 - 您可以从http://static.maximzaslavsky.com/jquery-1.4.2-vsdoc.js下载它 (15认同)
  • 优秀!研究+1 (5认同)
  • 如果这很容易,那么,为什么*jQuery.com或Microsoft的CDN(http://www.asp.net/ajaxlibrary/cdn.ashx)上仍然没有*Visual Studio链接?(我意识到这更像是一种咆哮,但如果有人知道并且可以分享,那将是有益的.) (4认同)

mar*_*c_s 23

你总是从http://docs.jquery.com/Downloading_jQuery得到它- 如果它还没有,它还没有.v1.4.1存在 - 见截图 - 但1.4.2还没有准备好.

替代文字http://i45.tinypic.com/29wwdnq.png

  • 根据今天对一篇文章的评论,Scott Guthrie正在"跟进团队,了解最新状态是什么." 见http://weblogs.asp.net/scottgu/archive/2010/10/04/jquery-templates-data-link-and-globalization-accepted-as-official-jquery-plugins.aspx#7623375希望这意味着我们很快就会在上面看到它. (2认同)
  • jquery 1.4.4文档已在microsoft cdn上发布,但仍未在jquery网站上显示:http://www.asp.net/ajaxlibrary/cdn.ashx#jQuery_Releases_on_the_CDN_0 (2认同)

Joh*_*n T 12

只是关于赫伯答案的说明.无论如何,对于我来说,2940行是在"触发"方法的中间.我在2949之后插入了代码.此外,由于我花了大约45分钟来弄清楚为什么评论不适用于这两个新例程 - "摘要"标签中有一个太多'm'!

这是更正后的版本:

        delegate: function(selector, types, data, fn) {
    /// <summary>
    ///     Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. See also "live".
    /// </summary>
    /// <param name="types" type="String">
    ///     A string containing a JavaScript event type, such as "click" or "keydown".
    /// </param>
    /// <param name="data" type="Object">
    ///     A map of data that will be passed to the event handler.
    /// </param>
    /// <param name="fn" type="Function">
    ///     A function to execute at the time the event is triggered.
    /// </param>
    /// <param name="selector" type="String">
    ///     An expression to search with.
    /// </param>

        return this.live(types, data, fn, selector);
    },

    undelegate: function(selector, types, fn) {
    /// <summary>
    ///     Remove a handler from the event for all elements which match the current selector, now or in the future, based upon a specific set of root elements. See also "die".
    /// </summary>
    /// <param name="selector" type="String">
    ///     An expression to search with.
    /// </param>
    /// <param name="types" type="String">
    ///     A string containing a JavaScript event type, such as "click" or "keydown".
    /// </param>
    /// <param name="fn" type="Function">
    ///     A function to execute at the time the event is triggered.
    /// </param>
        if (arguments.length === 0) {
            return this.unbind("live");

        } else {
            return this.die(types, null, fn, selector);
        }
    },
Run Code Online (Sandbox Code Playgroud)

  • 对我来说,这是第2949行. (2认同)

blu*_*ing 9

不确定它是否是"正式版",但现在可以从Microsoft CDN下载1.4.2-vsdoc文件:http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2-vsdoc.js

  • 我想这个文件可能有错误.如果我使用$(document).ready,我在第486行得到一个错误:readyBound没有定义. (2认同)

小智 8

最新的VSDoc支持版本似乎是微软的v.1.4.4,可以在http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4-vsdoc.js找到.

它是工具包的新MS CDN(取代旧的microsoft.com域).


小智 6

除了重命名VSDoc文件(1.4.1)之外,您还可能需要将1.4.1-vsdoc.js文件中使用的jQuery版本号更改为1.4.2.

见第224行,

// The current version of jQuery being used
    jquery: "1.4.2",
Run Code Online (Sandbox Code Playgroud)


小智 6

我决定根据这个问题和答案的输入创建一个并分享它.您可以从以下博客文章下载它:

http://hugeonion.com/2010/06/26/here-is-the-missing-jquery-1-4-2-vsdoc-file/

希望有所帮助!