js 精确判断数据类型 Object.prototype.toString.call(arr); let arr = []; let obj = { }; console.log(typeof arr); // object console.log(