JSDoc Toolkit-如何在同一行上指定@param和@property
||
有没有一种方法可以避免必须为@property和@param输入两个单独的行,如在示例中,在构造函数上,参数和属性的名称相同。
/**
* Class for representing a point in 2D space.
* @property {number} x The x coordinate of this point.
* @property {number} y The y coordinate of this point.
* @constructor
* @param {number} x The x coordinate of this point.
* @param {number} y The y coordinate of this point.
* @return {Point} A new Point
*/
Point = function (x, y)
{
this.x = x;
this.y = y;
}
没有找到相关结果
已邀请:
1 个回复
师埠女
但是实际上,如此详细的文档是没有用的。任何小学生都清楚我们在代码2ѭ中所说的话。