JSDoc 中文网

概述

¥Overview

@ignore 标记表示代码中的符号永远不应出现在文档中。该标签优先于所有其他标签。

¥The @ignore tag indicates that a symbol in your code should never appear in the documentation. This tag takes precedence over all others.

对于大多数 JSDoc 模板,包括默认模板,@ignore 标签具有以下作用:

¥For most JSDoc templates, including the default template, the @ignore tag has the following effects:

示例

¥Examples

在以下示例中,JacketJacket#color 将不会出现在文档中。

¥In the following example, Jacket and Jacket#color will not appear in the documentation.

`@ignore` tag"“类与
/**

 * @class

 * @ignore
 */
function Jacket() {
    /** The jacket's color. */
    this.color = null;
}

在以下示例中,Clothes 命名空间包含 Jacket 类。@ignore 标签必须添加到 ClothesClothes.Jacket 中。ClothesClothes.JacketClothes.Jacket#color 不会出现在文档中。

¥In the following example, the Clothes namespace contains a Jacket class. The @ignore tag must be added to both Clothes and Clothes.Jacket. Clothes, Clothes.Jacket, and Clothes.Jacket#color will not appear in the documentation.

带有子类的命名空间
/**

 * @namespace

 * @ignore
 */
var Clothes = {
    /**

     * @class

     * @ignore
     */
    Jacket: function() {
        /** The jacket's color. */
        this.color = null;
    }
};