제이쿼리 callbacks.empty()
제이쿼리 callbacks.empty()
설명 : 목록에서 모든 콜백을 제거하십시오.
예:
callbacks.empty()콜백 목록을 비우려면 다음 을 사용하십시오
// A sample logging function to be added to a callbacks list
var foo = function( value1, value2 ) {
console.log( "foo: " + value1 + "," + value2 );
};
// Another function to also be added to the list
var bar = function( value1, value2 ) {
console.log( "bar: " + value1 + "," + value2 );
};
var callbacks = $.Callbacks();
// Add the two functions
callbacks.add( foo );
callbacks.add( bar );
// Empty the callbacks list
callbacks.empty();
// Check to ensure all callbacks have been removed
console.log( callbacks.has( foo ) );
// false
console.log( callbacks.has( bar ) );
// false
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4796 | jQuery | 8년 전 | 1540 | ||
| 4795 | jQuery | 8년 전 | 1444 | ||
| 4794 | jQuery | 8년 전 | 1568 | ||
| 4793 | jQuery | 8년 전 | 1622 | ||
| 4792 | jQuery | 8년 전 | 1638 | ||
| 4791 | jQuery | 8년 전 | 1797 | ||
| 4790 | jQuery | 8년 전 | 1737 | ||
| 4789 | jQuery | 8년 전 | 1600 | ||
| 4788 | jQuery | 8년 전 | 1661 | ||
| 4787 | jQuery | 8년 전 | 1476 | ||
| 4786 | jQuery | 8년 전 | 1436 | ||
| 4785 | jQuery | 8년 전 | 1648 | ||
| 4784 | jQuery | 8년 전 | 1533 | ||
| 4783 | jQuery | 8년 전 | 1237 | ||
| 4782 | jQuery | 8년 전 | 1605 | ||
| 4781 | jQuery | 8년 전 | 1344 | ||
| 4780 | jQuery | 8년 전 | 1578 | ||
| 4779 | jQuery | 8년 전 | 1988 | ||
| 4778 | jQuery | 8년 전 | 1963 | ||
| 4777 | jQuery | 8년 전 | 1535 | ||
| 4776 | jQuery | 8년 전 | 1589 | ||
| 4775 | jQuery | 8년 전 | 1976 | ||
| 4774 | jQuery | 8년 전 | 1491 | ||
| 4773 | jQuery | 8년 전 | 1417 | ||
| 4772 | jQuery | 8년 전 | 2206 | ||
| 4771 | jQuery | 8년 전 | 3622 | ||
| 4770 | PHP | 8년 전 | 5586 | ||
| 4769 | 기타 | 8년 전 | 1967 | ||
| 4768 | 기타 | 8년 전 | 1785 | ||
| 4767 | 기타 | 8년 전 | 2074 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기