如何定义一个类?
发布于 7 年前 作者 weisun 5275 次浏览 最后一次编辑是 6 年前 来自 问答

function Point(_x, _y) {

  this.x = _x;

  this.y = _y;

}

这样定义行吗?


1 回复
回到顶部