摘要: /** * @method 产生类型判断函数的工厂 * @param {String} type 类型(String,Array,Number,NaN) * @return {Function} 类型判断函数 */var isType = function(type) { // var toString = Object.prototype.toString; //obj 需要被验证的对象 return window[is + type]||function(obj) { return toString.call(obj) == '[object ' + ... 阅读全文
posted @ 2014-04-04 18:26 龙则 阅读(470) 评论(1) 推荐(0) 编辑