代码之家  ›  专栏  ›  技术社区  ›  Janith

ES6类属性文档

  •  0
  • Janith  · 技术社区  · 8 年前

    在javascript函数中,我们可以像,

    /**
     * @param {number} x the first number to add 
     * @param {number} y the second number to add
     * @returns total of given 2 numbers
     */
    let f = (x, y) => {
        return x + y;
    }
    

    是否有任何标准方法或建议来记录ES6类属性(例如。。 this.name , this.title )因为任何类属性都可以在不同的方法中定义,因此很难跟踪。

    1 回复  |  直到 8 年前
        1
  •  3
  •   Amadan    8 年前

    根据评论:

    @property 对于静态支柱, @member

    推荐文章