首页 > 编程语言 > 详细

javascript的typeof使用

时间:2017-04-13 20:48:00      阅读:202      评论:0      收藏:0      [点我收藏+]

原网页 http://www.web-jia.com/view.php?a=23?

 

 

 

 

这个typeof我也用过好多次了,经常会忘记这次特意记录一下

Undefined "undefined"
Null "object" (see below)
Boolean "boolean"
Number "number"
String "string"
Symbol (new in ECMAScript 2015) "symbol"
Host object (provided by the JS environment) Implementation-dependent
Function object (implements [[Call]] in ECMA-262 terms) "function"
Any other object "object"

其中有一条要记录一下
typeof null === ‘object‘;

 

javascript的typeof使用

原文:http://www.cnblogs.com/hongyi1159/p/6705947.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!