Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
316 views
in Technique[技术] by (71.8m points)

java - 链接到Javadoc中的外部URL?(Linking to an external URL in Javadoc?)

Something like:

(就像是:)

/**
 * See {@linktourl http://google.com}
 */
  ask by ripper234 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This creates a "See Also" heading containing the link, ie:

(这将创建一个包含链接的“另请参见”标题,即:)

/**
 * @see <a href="http://google.com">http://google.com</a>
 */

will render as:

(将呈现为:)

See Also:

(也可以看看:)
http://google.com

(http://google.com)


whereas this:

(而这个:)

/**
 * See <a href="http://google.com">http://google.com</a>
 */

will create an in-line link:

(将创建一个内嵌链接:)

See http://google.com

(请参阅http://google.com)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...