在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
),因为任何类属性都可以在不同的方法中定义,并且很难保持跟踪。
发布于 2018-10-19 08:26:01
根据评论:
@财产用于静态道具,@成员用于道具。
https://stackoverflow.com/questions/52888273
复制相似问题