JSDoc 中文网

语法

¥Syntax

@tutorial <tutorialID>

概述

¥Overview

@tutorial 标记插入作为文档的一部分提供的教程文件的链接。有关创建教程的说明,请参阅 教程概述

¥The @tutorial tag inserts a link to a tutorial file that is provided as part of the documentation. See the tutorials overview for instructions on creating tutorials.

你可以在单个 JSDoc 注释中多次使用 @tutorial 标记。

¥You can use the @tutorial tag more than once in a single JSDoc comment.

示例

¥Examples

在以下示例中,MyClass 的文档将链接到具有标识符 tutorial-1tutorial-2 的教程:

¥In the following example, the documentation for MyClass will link to the tutorials that have the identifiers tutorial-1 and tutorial-2:

使用@tutorial 标签
/**

 * Description

 * @class

 * @tutorial tutorial-1

 * @tutorial tutorial-2
 */
function MyClass() {}