最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

返回值:undefinedcallbacks.add(callbacks)

概述

回調(diào)列表中添加一個(gè)回調(diào)或回調(diào)的集合。

參數(shù)

callbacks V1.7

一個(gè)函數(shù),或者一個(gè)函數(shù)數(shù)組用來(lái)添加到回調(diào)列表。 .

示例

描述:

使用 callbacks.add() 添加新的回調(diào)到回調(diào)列表:

jQuery 代碼:
// a sample logging function to be added to a callbacks list
var foo = function( value ){
    console.log( 'foo:' + value );
}

// another function to also be added to the list
var bar = function( value ){
    console.log( 'bar:' + value );
}

var callbacks = $.Callbacks();

// add the function 'foo' to the list
callbacks.add( foo );

// fire the items on the list
callbacks.fire( 'hello' );  
// outputs: 'foo: hello'

// add the function 'bar' to the list
callbacks.add( bar );

// fire the items on the list again
callbacks.fire( 'world' );  

// outputs:
// 'foo: world'
// 'bar: world'
射洪县| 福清市| 鹿泉市| 新蔡县| 民权县| 德钦县| 乌兰县| 军事| 塔城市| 南投市| 北辰区| 合水县| 裕民县| 罗城| 肇东市| 高邑县| 平原县| 巢湖市| 嘉禾县| 禹州市| 武定县| 郴州市| 盐边县| 柳州市| 枝江市| 昭觉县| 康平县| 开远市| 梁平县| 湖北省| 玉屏| 德清县| 苗栗市| 南召县| 大港区| 鹤壁市| 高州市| 九寨沟县| 靖远县| 达州市| 孟州市|