摘要: 1.关于typeof 如下 优点:能快速检查undefined,string,number,boolean类型 缺点:当类型为object,null,array时都会返回object,所以不能区分这三类 2.关于instanceof 优点:能检测array,function,object类型 缺点: 阅读全文
posted @ 2020-01-12 22:35 飞飞飞飞0928 阅读(1126) 评论(0) 推荐(0) 编辑