gpt4 book ai didi

jQuery 1.4.2 VSDoc

转载 作者:行者123 更新时间:2023-12-03 21:28:38 25 4
gpt4 key购买 nike

哪里可以获得 jQuery 1.4.2 的 VSDoc?

最佳答案

喜欢冒险的人可以从 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 );
}
},

该文档几乎是从 jQuery 网页以及“live”和“die”的当前定义中摘录的,但请随意调整您认为合适的内容。

另外,在第 224 行:

// The current version of jQuery being used
jquery: "1.4.2",

关于jQuery 1.4.2 VSDoc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2323366/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com