제이쿼리 callbacks.fire (arguments)
제이쿼리 callbacks.fire (arguments)
설명 : 주어진 인수를 사용하여 모든 콜백을 호출하십시오.
예:
callbacks.fire()전달 된 인수가있는 목록에서 콜백을 호출하는 데 사용 합니다.
// A sample logging function to be added to a callbacks list
var foo = function( value ) {
console.log( "foo:" + 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"
callbacks.fire( "world" ); // Outputs: "foo: world"
// Add another function to the list
var bar = function( value ){
console.log( "bar:" + value );
};
// Add this function to the list
callbacks.add( bar );
// Fire the items on the list again
callbacks.fire( "hello again" );
// Outputs:
// "foo: hello again"
// "bar: hello again"
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5366 | 기타 |
nekoieye
|
1년 전 | 1118 | |
| 5365 | PHP | 1년 전 | 773 | ||
| 5364 | JavaScript | 1년 전 | 525 | ||
| 5363 | JavaScript | 1년 전 | 993 | ||
| 5362 | 1년 전 | 1230 | |||
| 5361 | JavaScript | 1년 전 | 1240 | ||
| 5360 |
그누보드이해하기
|
1년 전 | 774 | ||
| 5359 | 1년 전 | 1089 | |||
| 5358 | 1년 전 | 1095 | |||
| 5357 | 1년 전 | 807 | |||
| 5356 | 1년 전 | 367 | |||
| 5355 |
|
1년 전 | 585 | ||
| 5354 | 1년 전 | 1062 | |||
| 5353 |
|
1년 전 | 703 | ||
| 5352 |
|
1년 전 | 639 | ||
| 5351 | PHP | 1년 전 | 808 | ||
| 5350 | PHP | 1년 전 | 573 | ||
| 5349 | OS | 1년 전 | 646 | ||
| 5348 | 기타 | 1년 전 | 450 | ||
| 5347 | 기타 | 1년 전 | 630 | ||
| 5346 | 기타 | 1년 전 | 505 | ||
| 5345 | 기타 | 1년 전 | 397 | ||
| 5344 | JavaScript |
|
1년 전 | 429 | |
| 5343 | PHP |
|
1년 전 | 501 | |
| 5342 | jQuery | 1년 전 | 575 | ||
| 5341 | PHP |
|
1년 전 | 878 | |
| 5340 | Mobile |
슈퍼스타맨
|
1년 전 | 559 | |
| 5339 | 기타 |
|
1년 전 | 559 | |
| 5338 |
멀티트리플
|
2년 전 | 1295 | ||
| 5337 | 기타 |
슈퍼스타맨
|
2년 전 | 1792 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기