对象继承
;(function () {
var o = {
inheritObject:function (obj) {
var F = function () {}
F.prototype = obj;
return new F();
},
inheritPrototype:function (subclass, superclass) {
var o = this.inheritObject(subclass.prototype);
o.constructor = subclass;
subclass.prototype = o;
}
}
window.objUtil = o;
})();