判断元素的类型
function z(obj) {
let objs = Object.prototype.toString.call(obj).slice(8, -1);
console.log(objs); //判断输入的值的类型,是Object还是Araay还是string等
}
function z(obj) {
let objs = Object.prototype.toString.call(obj).slice(8, -1);
console.log(objs); //判断输入的值的类型,是Object还是Araay还是string等
}