js 继承
2021-06-18 18:08
标签:name get str obj circle raw create uid function function Shape(name) { this.id = Utils.getUID(); this.name = name; } Shape.prototype = { destroy: function() {}, check: function() {} } function Circle() { Shape.call(this, ‘circle‘); } Circle.prototype = Object.create(Shape.prototype); Circle.prototype.draw = function() {} js 继承 标签:name get str obj circle raw create uid function 原文地址:http://www.cnblogs.com/fe-huahai/p/7204465.html