摘要: 众所周知,用jQuery的extend方法,可以很方便的实现继承和对象拷贝,我们可以把它拿过来自己用。(function(win) { var toString = Object.prototype.toString; var hasOwn = Object.prototype.hasOwnProperty; var class2type = {}; class2type["[object Boolean]"] = "boolean"; class2type["[object Number]"] = "number" 阅读全文
posted @ 2012-07-15 10:18 水之原 阅读(623) 评论(0) 推荐(0) 编辑