@ignore¶
-
.. @ignore::¶ - 语法
@ignore- 概述
The
@ignoretag indicates that a symbol in your code should never appear in the documentation. This tag takes precedence over all others.For most JSDoc templates, including the default template, the
@ignoretag has the following effects:If you use the
@ignoretag with the@classor@moduletag, the entire class or module will be omitted from the documentation.If you use the
@ignoretag with the@namespacetag, you must also add the@ignoretag to any child classes and namespaces. Otherwise, your documentation will show the child classes and namespaces, but with incomplete names.
- 示例
在下面的例子中, ``Jacket``和``Jacket #color``将不会出现在文档中.
/** * @class * @ignore */ function Jacket() { /** The jacket's color. */ this.color = null; }
In the following example, the
Clothesnamespace contains aJacketclass. The@ignoretag must be added to bothClothesandClothes.Jacket.Clothes,Clothes.Jacket, andClothes.Jacket#colorwill not appear in the documentation.Namespace with child class¶/** * @namespace * @ignore */ var Clothes = { /** * @class * @ignore */ Jacket: function() { /** The jacket's color. */ this.color = null; } };