会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
vue VS react
博客园
首页
新随笔
联系
订阅
管理
2021年11月23日
常用判断js数据类型
摘要: 通常情况下用typeof 判断就可以了,遇到预知Object类型的情况可以选用instanceof或constructor方法,实在没辙就使用$.type()方法。 一、typeof alert(typeof a) > string alert(typeof b) > number alert(ty
阅读全文
posted @ 2021-11-23 20:15 Jim-vue
阅读(99)
评论(0)
推荐(0)
编辑
公告