快速判断是否为数组的方法 instanceof Array let arr = []; if(arr instanceof Array){ // true }else{} // false 转载于:https://www.cnblogs.com/hs610/p/11578040.html