const getType=function(o){
let s=Object.prototype.toString.call(o)
return s.replace(/^\[object\s(.*)\]$/gi, ($0, $1) => {
return $1.toLowerCase();
})
}
返回 小写 null undefined number object date string array
const getType=function(o){
let s=Object.prototype.toString.call(o)
return s.replace(/^\[object\s(.*)\]$/gi, ($0, $1) => {
return $1.toLowerCase();
})
}
返回 小写 null undefined number object date string array