제이쿼리 callbacks.add( callbacks )
제이쿼리 callbacks.add( callbacks )
설명 : 콜백 또는 콜백 콜렉션을 콜백 목록에 추가합니다.
예:
callbacks.add()콜백 목록에 새 콜백을 추가하는 데 사용 합니다.
// 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"
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4676 | PHP | 8년 전 | 1659 | ||
| 4675 | PHP | 8년 전 | 2078 | ||
| 4674 | PHP | 8년 전 | 1926 | ||
| 4673 | PHP | 8년 전 | 2615 | ||
| 4672 | PHP | 8년 전 | 2085 | ||
| 4671 | PHP | 8년 전 | 2637 | ||
| 4670 | PHP | 8년 전 | 1928 | ||
| 4669 | PHP | 8년 전 | 1771 | ||
| 4668 | PHP | 8년 전 | 2330 | ||
| 4667 | PHP | 8년 전 | 1943 | ||
| 4666 | PHP | 8년 전 | 2109 | ||
| 4665 | PHP | 8년 전 | 2044 | ||
| 4664 | PHP | 8년 전 | 2012 | ||
| 4663 | PHP | 8년 전 | 2109 | ||
| 4662 | PHP | 8년 전 | 2079 | ||
| 4661 | JavaScript | 8년 전 | 2948 | ||
| 4660 | PHP | 8년 전 | 1973 | ||
| 4659 | PHP | 8년 전 | 2182 | ||
| 4658 | PHP | 8년 전 | 2015 | ||
| 4657 | 웹서버 | 8년 전 | 3693 | ||
| 4656 | JavaScript | 8년 전 | 4031 | ||
| 4655 | MySQL | 8년 전 | 2584 | ||
| 4654 | MySQL | 8년 전 | 5017 | ||
| 4653 | JavaScript | 8년 전 | 3135 | ||
| 4652 | PHP |
ycolor
|
8년 전 | 1943 | |
| 4651 | MySQL | 8년 전 | 4998 | ||
| 4650 | PHP | 8년 전 | 2033 | ||
| 4649 | PHP | 8년 전 | 2238 | ||
| 4648 | PHP | 8년 전 | 2310 | ||
| 4647 | MySQL | 8년 전 | 2267 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기