제이쿼리 callbacks.locked () 정보
jQuery 제이쿼리 callbacks.locked ()본문
제이쿼리 callbacks.locked ()
설명 : 콜백 목록이 잠겨 있는지 확인하십시오.
예:
callbacks.locked()콜백 목록의 잠금 상태를 결정할 때 사용 합니다.
// A sample logging function to be added to a callbacks list
var foo = function( value ) {
console.log( "foo: " + value );
};
var callbacks = $.Callbacks();
// Add the logging function to the callback list
callbacks.add( foo );
// Fire the items on the list, passing an argument
callbacks.fire( "hello" );
// Outputs "foo: hello"
// Lock the callbacks list
callbacks.lock();
// Test the lock-state of the list
console.log ( callbacks.locked() );
// true
추천
0
0
댓글 0개