Is there a convention on how to document a JavaScript file with comments? Like function signatures, examples, etc

坚强是说给别人听的谎言 提交于 2019-11-29 04:30:06

问题


Java has Javadoc, Python has docstring. Is there something similar in JavaScript?


回答1:


The most commonly used is JsDoc (https://jsdoc.app/).

This is also a tool that generates documentation from your sources, commented with JsDoc style: https://github.com/jsdoc3/jsdoc



来源:https://stackoverflow.com/questions/18529526/is-there-a-convention-on-how-to-document-a-javascript-file-with-comments-like-f

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