摘要: Class的基本语法 ES5中,生成实例对象的传统方式是通过构造函数。 function Point(x, y) { this.x = x; this.y = y; } Point.prototype.toString = function () { return '(' + this.x + ', 阅读全文
posted @ 2017-08-22 14:44 webLion200 阅读(457) 评论(0) 推荐(0)