摘要: 利用Object.toString.call()方法看代码先初始化class2type,将每种对象的toString后的值和type建立对应关系core_toString.call([])输出"[Object Array]"class2type = {}core_toString = class2type.toString// Populate the class2type mapjQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" 阅读全文
posted @ 2013-07-10 23:46 舟~ 阅读(3596) 评论(0) 推荐(0) 编辑