Link to text file (resource) in Javadoc

冷暖自知 提交于 2019-12-01 05:52:11

问题


I did my seach but couldn't find the right answer... How can I use link to a resource text file in Javadoc. {@link easywords.txt} doesn't work. <a href="D:\NetBeans\HMan\easy.txt">Easy words</a> doesn't work neither.


回答1:


Try <a href="file:///D:/NetBeans/HMan/easy.txt">Easy words</a> instead.

A Link should be a URL.

The browser may think D would be protocol to handle requests.

For literature: http://en.wikipedia.org/wiki/File_URI_scheme



来源:https://stackoverflow.com/questions/26632551/link-to-text-file-resource-in-javadoc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!