Skip to content
标签
note
字数
59 字
阅读时间
1 分钟

原理

javascript
class Point {
  constructor() {
    // ...
  }

  toString() {
    // ...
  }

  toValue() {
    // ...
  }
}

// 等同于

Point.prototype = {
  constructor() {},
  toString() {},
  toValue() {},
};

属性

this.属性、实例属性、静态属性

参考

贡献者

The avatar of contributor named as jiechen jiechen

页面历史

撰写