小编Vov*_*ova的帖子

如何用jsdoc描述js模块

请向我解释一下描述这个模块的最佳方法:

/**
 * Common util methods
 * @module Utils
 */
var Utils = (/** @lends module:Utils */
    function () {

    /**
     * Some default value
     * @constant
     * @public
     * @static
     * @type {string}
     */
    var staticConstantField = "Some value";

    //export to public access
    var exports = {
        staticConstantField: staticConstantField,
        getUrlArgs: getUrlArgs,
        isJSON: isJSON
    };

    return exports;

    /**
     * Return url arguments as associate array
     * @public
     * @static
     * @returns {Array} - url args
     */
    function getUrlArgs() {
        return …
Run Code Online (Sandbox Code Playgroud)

jsdoc jsdoc3

5
推荐指数
1
解决办法
1019
查看次数

标签 统计

jsdoc ×1

jsdoc3 ×1