제이쿼리 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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5246 | node.js |
swallow
|
2년 전 | 1108 | |
| 5245 | PHP |
swallow
|
2년 전 | 2529 | |
| 5244 | PHP |
swallow
|
2년 전 | 1289 | |
| 5243 | JavaScript |
swallow
|
2년 전 | 687 | |
| 5242 | node.js |
swallow
|
2년 전 | 667 | |
| 5241 | node.js |
swallow
|
2년 전 | 780 | |
| 5240 | MySQL |
swallow
|
2년 전 | 809 | |
| 5239 | MySQL | 2년 전 | 786 | ||
| 5238 | JavaScript | 2년 전 | 986 | ||
| 5237 | 웹서버 |
swallow
|
2년 전 | 3991 | |
| 5236 | PHP |
swallow
|
2년 전 | 901 | |
| 5235 | PHP |
swallow
|
2년 전 | 1379 | |
| 5234 | 기타 | 2년 전 | 765 | ||
| 5233 | jQuery |
swallow
|
2년 전 | 2037 | |
| 5232 | 2년 전 | 620 | |||
| 5231 | 2년 전 | 1174 | |||
| 5230 | 2년 전 | 1078 | |||
| 5229 | PHP |
swallow
|
2년 전 | 1026 | |
| 5228 | MySQL | 2년 전 | 729 | ||
| 5227 | PHP |
swallow
|
2년 전 | 838 | |
| 5226 | PHP |
swallow
|
2년 전 | 1814 | |
| 5225 | PHP | 2년 전 | 576 | ||
| 5224 | node.js |
swallow
|
2년 전 | 4086 | |
| 5223 | PHP |
swallow
|
2년 전 | 1317 | |
| 5222 | 기타 |
techstar
|
2년 전 | 564 | |
| 5221 | PHP | 2년 전 | 653 | ||
| 5220 |
swallow
|
2년 전 | 906 | ||
| 5219 | 2년 전 | 881 | |||
| 5218 | 2년 전 | 524 | |||
| 5217 | 2년 전 | 1001 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기