摘要: 1functiontype(obj,type){2varts={}.toString,3_types={4'undefined':'undefined',5'number':'number',6'boolean':'boolean',7'string':'string'8},9t=obj===null?'null':10(_types[typeofobj]||ts.call(obj).slice(8,-1).toLowerCase());11retur阅读全文
posted @ 2011-08-25 14:54 tangoboy 阅读(87) 评论(0) 编辑