Tag: typeof

(typeof variable ===“function”)和jQuery.isFunction()之间有什么区别?

我一直使用(typeof variable === “function”) ,我偶然发现了jQuery.isFunction() ,我想知道: typeof方法和jQuery的方法有什么区别? 而且不仅仅是差异,而是 什么时候使用typeof方法是合适的,什么时候适合使用jQuery的方法?