typeof
来源:互联网 发布:如何测试端口通不通 编辑:程序博客网 时间:2024/05/14 08:55
1、基本类型,数字Number,布尔Boolean,字符串String,undefied,
typeof 1;//numbertypeof true;//booleantypeof "";//stringtypeof zheng;//undefined
2、引用类型,{},null,
typeof {};//objecttypeof null;//objecttypeof Math;//objecttypeof /zheng/gi;//object
3、函数对象
typeof Number;//functiontypeof Boolean;//functiontypeof String;//functiontypeof RegExp;//functiontypeof Date;//functiontypeof Error;//functiontypeof Function;//functionvar sayName = function{alert(this.name)};typeof sayName;//function
阅读全文
0 0
- typeof
- typeof
- typeof
- typeof
- typeof
- typeof
- typeof
- typeof
- typeof
- typeof
- typeof
- typeof()
- typeof()
- typeof
- typeof
- typeof
- typeof
- typeof
- 一些有用的python包
- 企业如何避免倒闭
- 设计模式-装饰模式
- spark与storm比对与选型
- 仿京东搜索
- typeof
- 各种特殊内存填充的含义
- angular4系列之动态创建组件
- Pascal的旅行
- UVALive 7505 Hungry Game of Ants ACM/ICPC ECFinal 2015(dp+思维)
- 【计算机算法分析】递归与分治策略——二分搜索与集合划分问题
- angular表单添加查询删除
- Picasso的简单使用及封装
- 【Eclipse】安装html/jsp/xml插件