typeof 的取值类型范围 以及 typeof和 instanceof 的区别

**typeof的取值范围** typeof运算符用来检测给定变量的数据类型,返回一个用来表示表达式的数据类型的字符串。 可能的返回值有:“number”、“string”、“boolean”、“object”、“function” 和 “undefined”。 ** typeof和 instanceof 的区别** 相同点: JavaScript 中 typeof 和 instanceof 常用
相关文章
相关标签/搜索