es5继承
程序员文章站
2022-07-15 20:38:20
...
function inherit (target, original) {
function f () {}
f.prototype = original.prototype
target.prototype = new f()
target.prototype.constructor = target
}
上一篇: Rxjava总结第二篇
下一篇: ES5的继承