摘要: 在编写JS代码中,经常要对某个变量进行类型检测。常用的类型检测方法有:typeofObject.prototype.toStringconstructorinstanceoftypeoftypeof可以识别出基本数据类型(null除外),同时typeof并不能识别具体的对象类型(Function... 阅读全文
posted @ 2015-05-27 21:26 kiliro 阅读(129) 评论(0) 推荐(0)