제이쿼리 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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 26 | MySQL |
아우겐나이스
|
21년 전 | 5830 | |
| 25 | JavaScript |
아우겐나이스
|
21년 전 | 5213 | |
| 24 | MySQL | 21년 전 | 7770 | ||
| 23 | MySQL | 21년 전 | 5067 | ||
| 22 | 기타 | 21년 전 | 8063 | ||
| 21 | 기타 | 21년 전 | 5970 | ||
| 20 | MySQL | 21년 전 | 6608 | ||
| 19 | MySQL | 21년 전 | 9362 | ||
| 18 | 기타 | 21년 전 | 6955 | ||
| 17 | MySQL | 21년 전 | 9485 | ||
| 16 | JavaScript | 21년 전 | 6731 | ||
| 15 | 기타 | 21년 전 | 4760 | ||
| 14 | 기타 | 21년 전 | 7670 | ||
| 13 | 기타 | 21년 전 | 5474 | ||
| 12 | JavaScript |
Recluse
|
21년 전 | 6492 | |
| 11 | 기타 |
아우겐나이스
|
21년 전 | 5426 | |
| 10 | 기타 |
Recluse
|
21년 전 | 5063 | |
| 9 | 기타 | 21년 전 | 5934 | ||
| 8 | MySQL | 21년 전 | 7461 | ||
| 7 | PHP | 21년 전 | 6938 | ||
| 6 | JavaScript | 21년 전 | 8170 | ||
| 5 | PHP | 21년 전 | 6196 | ||
| 4 | Linux | 21년 전 | 7065 | ||
| 3 | PHP | 21년 전 | 7313 | ||
| 2 | 기타 | 21년 전 | 5661 | ||
| 1 | JavaScript | 22년 전 | 7674 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기