JSDOC Annotation Specification tool (automatically generates JAVASCRIPT API documentation using JSDOC 3)

Source: Internet
Author: User

Installation and use specifications See: Http://moodpo.com/archives/jsdoc3-tutorial.html

Instance:

/** * 模块调用方法 * *  * @param  {string}   moduleName 模块名称 * @param  {Function} callback   模块加载完成的回调,回调函数中会返回模块对象,方便内部调用 * @param  {Boolean}  isQueue    是否加入队列:在队列中的文件逐个加载(非异步) * @param  {date}     timeout    延时加载的时间以毫秒为单位 *  * @return {[type]}              不管模块是否加载成功,都会返回跟对象,便于链式调用 ;  *                               链式调用与模块的加载情况是异步的,没有依赖关系,                                 所以在链式调用中不能确保能够调用到模块中的方法 * @example            xue.use(‘pages‘, function(module){                // 根据模块名称进行调用                xue.pages.config({                    pages : 22,                    current : 1                }).go(3);                // 根据返回的对象进行调用                module(‘page2‘).config({                    pages: 10,                    current: 3                });            }, true, 1000).test(); */

JSDOC Annotation Specification tool (automatically generates JAVASCRIPT API documentation using JSDOC 3)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.