// 类型判断功能函数
function typeOf(value) {
if (value !== value) {
return 'NaN';
}
return Object.prototype.toString.call(value).slice(8, -1).toLowerCase();
}
// 类型判断功能函数
function typeOf(value) {
if (value !== value) {
return 'NaN';
}
return Object.prototype.toString.call(value).slice(8, -1).toLowerCase();
}
本文标题:类型判断功能函数
本文链接:https://www.haomeiwen.com/subject/xuqfwqtx.html
网友评论