https://zhidao.baidu.com/question/79159257.html

typeof 运算符返回一个用来表示表达式的数据类型的字符串。 
可能的字符串有:"number"、"string"、"boolean"、"object"、"function" 和 "undefined"。
如:
alert(typeof (123));//typeof(123)返回"number"
alert(typeof ("123"));//typeof("123")返回"string"
posted on 2016-12-16 14:27  筱筱鹿丸  阅读(173)  评论(0编辑  收藏  举报