// if (Object.prototype.toString.call(data) === "[object Object]") { // console.log("数据为对象类型"); // } // if (Object.prototype.toString.call(data) === "[object String]") { // console.log("数据为字符串型"); // this.daAn[`user_${id}`] = index + 1; // }
标签:判断,console,log,Object,数据类型,object,toString From: https://www.cnblogs.com/wangshishuai/p/16800118.html