可以使用Object.prototype.toString.call() 判断一切数据类型。
Object.prototype.toString.call({
});
"[object Object]"
Object.prototype.toString.call([]);
<!--"[object Array]"-->
Object.prototype.toString.
可以使用Object.prototype.toString.call() 判断一切数据类型。
Object.prototype.toString.call({
});
"[object Object]"
Object.prototype.toString.call([]);
<!--"[object Array]"-->
Object.prototype.toString.