判断数组 return Object.prototype.toString.apply(arr) === "[object Array]";
判断undefined if(typeof obj === "undefined" || typeof data === "undefined")