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` 标签的类
/**
 * @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;
    }
};