..... JsDoc-Toolkit docco Docco is a quick-and-dirty, hundred-line-long, literate-programming-style documentation generator. It produces HTML that displays your comments alongside your code. Comments are passed through Markdown, and code is passed through Pygments syntax highlighting. This page is the result of running Docco against its own source file. @yyfrankyy Yet Another JavaScript Programmer f2e.us JsDoc的使用
..... JsDoc-Toolkit Introduction jsdoc-toolkit JsDoc Toolkit is an application, written in JavaScript, for automatically generating template-formatted, multi-page HTML (or XML, JSON, or any other text-based) documentation from commented JavaScript source code. @yyfrankyy Yet Another JavaScript Programmer f2e.us JsDoc的使用
..... JsDoc-Toolkit Annotations @name 全文索引,默认为注释快后第一个token名。 全文共享,暴露局部变量可能引发局部变量的声明冲突。 设置@name,可改变当前变量的全文索引。 Example /** * name of this account. * */ var name = "frank"; @yyfrankyy Yet Another JavaScript Programmer f2e.us JsDoc的使用
..... JsDoc-Toolkit Annotations @name 全文索引,默认为注释快后第一个token名。 全文共享,暴露局部变量可能引发局部变量的声明冲突。 设置@name,可改变当前变量的全文索引。 Example /** * name of this account. * @name wenhe */ var name = "frank"; @yyfrankyy Yet Another JavaScript Programmer f2e.us JsDoc的使用
..... JsDoc-Toolkit Annotations @description/@example 无tag的信息并入@description。 可通过@link/@see进行相互链接。 @example输出<pre/>标签。 顺序解析,直接转为html(无换行),有markdown插件。 Example /** * name of this account. * @description * other desc. * @example * Form.add("hello"); */ Example name of this account. other desc. Form.add("hello"); @yyfrankyy Yet Another JavaScript Programmer f2e.us JsDoc的使用