摘要: 通常为了快捷我们都会使用 typeof 操作符去判断变量的类型,但是这种做法不能准确判断出变量的类型。比如:typeof []; // 返回 'object'typeof {}; // 返回 'object'typeof new Number(1); // 返回 'object't... 阅读全文
posted @ 2015-05-22 09:46 yilim_vong 阅读(355) 评论(0) 推荐(1) 编辑