我发现以下提供的信息不会给开发人员带来负担。
对于类:
/**
* The XYZ class description .... In this class function1, and
* function2 are intended for external use.
*
* @author ...
* @version 1.0
* @see XYZ.function1
* @see XYZ.function2
**/
对于构造函数:
/**
* The constructor ...
*
* @author ...
* @constructor
* @this instance of XYZ
**/
对于构造私有成员:
/** @private **/ this.x = 1;
/** @private **/ this.y = 2;
/** @private **/ this.z = 3;
对于函数:
/**
* The function ...
*
* @author ...
* @param {type|otherType} X - description
* @param {type=} Y - optional, description
* @param {type=3} Z - default value, description
* @return {type} - description, omit if nothing returned
* @this instance of XYZ, or XYZ class for static functions
* @private omit if not private
* @see XYZ.function, provide if another function is relevant
* @throws exception, omit if no exceptions are thrown
**/