摘要: 在JS里typeof 大家用的很多,可以使对于数组、对象和Null无法区分的问题,看了看犀牛书还是有解决办法的。document.writeln(typeof "abc"); //stringdocument.writeln(typeof 123); //numberdocument.writeln(typeof true); //booleandocument.writeln(typeof eval); //functiondocument.writeln(typeof []); //objectdocument.writeln(typeof null); //objec 阅读全文
posted @ 2013-08-23 15:42 暮云影风 阅读(1672) 评论(3) 推荐(3) 编辑