会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
gengcjun
博客园
首页
新随笔
联系
订阅
管理
2017年3月27日
js 基础 —— typeof 和 instanceof
摘要: 1、typeof 检测变量string,number,boolean,undefined; 如果变量的值是一个null或者对象,则typeof都会返回object; 如果变量是一个函数,则typeof返回function; 2、instanceof instanceof 用来判断一个变量是否是某个对
阅读全文
posted @ 2017-03-27 10:37 gengcjun
阅读(155)
评论(0)
推荐(0)
编辑
公告