标签: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() {}
标签:name get str obj circle raw create uid function
原文地址:http://www.cnblogs.com/fe-huahai/p/7204465.html