js 摘录

判断数组 return Object.prototype.toString.apply(arr) === "[object Array]";
判断undefined if(typeof obj === "undefined" || typeof data === "undefined")
原文地址:https://www.cnblogs.com/MDK-L/p/4358034.html