javascript检测数据类型的5种方法

javascript检测数据类型的5种方法:typeof、instanceof、Object.prototype.toString()、constructor、duck type…… (1).typeof –适合基本的数据类型和函数 100 number true boolean function function undefined undefined new Object() object [
相关文章
相关标签/搜索