제이쿼리 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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4646 | PHP | 8년 전 | 2141 | ||
| 4645 | PHP | 8년 전 | 2136 | ||
| 4644 | PHP | 8년 전 | 1636 | ||
| 4643 | PHP | 8년 전 | 1703 | ||
| 4642 | PHP | 8년 전 | 1807 | ||
| 4641 | PHP | 8년 전 | 1878 | ||
| 4640 | PHP | 8년 전 | 2039 | ||
| 4639 | PHP | 8년 전 | 1690 | ||
| 4638 | PHP | 8년 전 | 1604 | ||
| 4637 | PHP | 8년 전 | 1838 | ||
| 4636 | PHP | 8년 전 | 1560 | ||
| 4635 | Mobile | 8년 전 | 10198 | ||
| 4634 | PHP | 8년 전 | 2129 | ||
| 4633 | PHP | 8년 전 | 1715 | ||
| 4632 | PHP | 8년 전 | 1994 | ||
| 4631 | OS | 8년 전 | 7133 | ||
| 4630 | PHP | 8년 전 | 2027 | ||
| 4629 | PHP | 8년 전 | 2070 | ||
| 4628 | PHP | 8년 전 | 5442 | ||
| 4627 | MySQL | 8년 전 | 4244 | ||
| 4626 | OS |
|
8년 전 | 3093 | |
| 4625 | PHP | 8년 전 | 2316 | ||
| 4624 | PHP | 8년 전 | 2214 | ||
| 4623 | PHP | 8년 전 | 1872 | ||
| 4622 | PHP | 8년 전 | 2277 | ||
| 4621 | PHP | 8년 전 | 2027 | ||
| 4620 | PHP | 8년 전 | 2094 | ||
| 4619 | 기타 | 8년 전 | 3826 | ||
| 4618 | PHP | 8년 전 | 2671 | ||
| 4617 | PHP | 8년 전 | 1870 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기