91亚洲精品福利在线播放,欧美日韩国产在线人成app,天天躁日日躁疯人影院,sao虎视频最新网站入口,精品久久久久久中文字幕女

首頁(yè)  >  回調函數  > cal.fireWith([c] [,a])

返回值:undefinedcallbacks.fireWith([context][,args])

jQuery callbacks.fireWith() 方法概述

訪(fǎng)問(wèn)給定的上下文和參數列表中的所有回調

參數

[context][,args]V1.7

context: 該列表中的回調被觸發(fā)的上下文引用

args: 一個(gè)參數或參數列表傳回給回調列表。

示例

描述:

使用 callbacks.fireWith() 訪(fǎng)問(wèn)給定的上下文和參數列表中的所有回調。

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

var callbacks = $.Callbacks();

// add the log method to the callbacks list
callbacks.add( log );

// fire the callbacks on the list using the context 'window'
// and an arguments array

callbacks.fireWith( window, ['foo','bar']);

// outputs: Received: foo, bar
91亚洲精品福利在线播放,欧美日韩国产在线人成app,天天躁日日躁疯人影院,sao虎视频最新网站入口,精品久久久久久中文字幕女