加载中...

@see


说明: 更多详细信息请参阅其他一些文档。

语法

  • @see <namepath>
  • @see <text>

概述

@see标签表示可以参考另一个标识符的说明文档,或者一个外部资源。您可以提供一个标识符的namepath或自由格式的文本。如果你提供了一个namepath,JSDoc的默认模板会自动将namepath转换成链接。

例子

例如,使用@see标签:

  1. /**
  2. * Both of these will link to the bar function.
  3. * @see {@link bar}
  4. * @see bar
  5. */
  6. function foo() {}
  7.  
  8. // Use the inline {@link} tag to include a link within a free-form description.
  9. /**
  10. * @see {@link foo} for further information.
  11. * @see {@link http://github.com|GitHub}
  12. */
  13. function bar() {}


还没有评论.