javascript的typeof的返回值

返回值为字符串,值为下列中的一个:

1.number(数字);

2.string(字符串);

3.boolean(布尔值);

4.object(对象、数组和null);

5.function(函数);

6.undefined;

  typeof(undefined)=>'undefined'

posted @ 2014-12-08 15:55  LeonGo  阅读(381)  评论(0)    收藏  举报