isArray,isEmptyObject,isFunction等方法实现
function isArray(arr){return Object.prototype.toString.call(arr) === "[object Array]";} 例如: isArray(new Array('a','d'));为true function isFunction(arr){return Object.prototype.toStr...