1、function類型
function isFunction(obj) { if (Object.prototype.toString.call(obj) === '[object Function]') { return true; } return false; }