摘要:
typeof typeof运算符返回一个用来表示表达式的数据类型的字符串。 返回值为6个字符串,分别为string、Boolean、number、function、object、undefined。 let a = [1,2,3], b = 1, c = 'test', d = function() 阅读全文
posted @ 2021-07-20 14:22
wechary
阅读(763)
评论(0)
推荐(0)
摘要:
1、判断变量数据类型 function getValuetType(value) { return Object.prototype.toString.call(value) } 2、数组去重 function unique1(arr) { return [...new Set(arr)] } fu 阅读全文
posted @ 2021-07-20 14:03
wechary
阅读(55)
评论(0)
推荐(0)

浙公网安备 33010602011771号