문제

I need to check whether a object is Deferred or not using Jquery, how to check that?

Thanks in advance,

Madhu

도움이 되었습니까?

해결책

The logic used internally by jQuery's when() method is

if(object && $.isFunction( object.promise )){
}

src: deferred.js

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top