摘要: typeof XXX typeof检测字符串、数字、布尔、Undefined。 [] instanceof Array instanceof 检测Array RegExp 。 Object.prototype.toString.call([])->"[object Array]" 检测所有类型。 这 阅读全文
posted @ 2018-02-23 15:16 抓猫的老鼠 阅读(108) 评论(0) 推荐(1) 编辑