javadoc @docRoot

发布于 2024-09-07 10:18:40 字数 53 浏览 2 评论 0原文

谁能向我展示该 javadoc 标签的示例吗?

我不太明白如何在代码中使用它

Can anyone show me an example of that javadoc tag?

I don't understand very well how to use it in the code

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

疧_╮線 2024-09-14 10:18:40

javadoc 文档 有几个很好的例子。它始终指向文档的根目录,因此,如果您想在每个页面上包含某些内容,则可以使用它来查找 javadoc 根目录,因为相对路径因页面而异,

例如,要包含您公司的徽标在每个生成的文档页面的顶部,您可以将 logo.png 放在文档的根目录中,然后添加:

<img src="{@docRoot}/logo.png">

到 javadoc 标头

The javadoc documentation has a couple good examples. It always points to the root of the documentation, so if there's something you want to include on every page, you use it to find the javadoc root, since a relative path would be different from page to page

For example, to include your company's logo at the top of every generated documentation page, you might put logo.png in the root of the documentation and then add:

<img src="{@docRoot}/logo.png">

to the javadoc header

ぶ宁プ宁ぶ 2024-09-14 10:18:40

以下是一些标签

@author  //this will give name of author

@see     //it is used to point to refrence

@since   //this will give from which version it is included

@link    // this is used to provide link to another file

示例:http://www.docjar.net/html/api/java/util/Collections.java.html

文档标准:http://www.oracle.com/technetwork/java/javase/documentation /index-137868.html#tag

These are few tag below

@author  //this will give name of author

@see     //it is used to point to refrence

@since   //this will give from which version it is included

@link    // this is used to provide link to another file

example :http://www.docjar.net/html/api/java/util/Collections.java.html

doc standard :http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#tag

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文