摘要:
用了很多的Javascript框架,偶尔也会去看一下框架的源码,经常会看到这样的代码:isArray:function(v){returntoString.apply(v)==='[objectArray]';},isDate:function(v){returntoString.apply(v)==='[objectDate]';},isObject:function(v){return!!v&&Object.prototype.toString.call(v)==='[objectObject]';},isPrimitive: 阅读全文