- 基本数据类型检测
typeof() - 数组检测
[] instanceof Array - 万能检测
Object.prototype.toString.call()
检测数据类型的方法
猜你喜欢
转载自www.cnblogs.com/J--L/p/10553710.html
今日推荐
周排行