摘要: JavaScript语言的传统方法是通过构造函数,定义并生成新对象。下面是一个例子。 function Point(x, y) { this.x = x; this.y = y; } Point.prototype.toString = function () { return this.x + t 阅读全文
posted @ 2021-02-05 17:26 sunmarvell 阅读(39) 评论(0) 推荐(0) 编辑