javascript - jQuery plugin documentation with JSDoc - Stack Overflow

I'm wondering how to documenting jQuery plugin by using JSDoc? My code is:*** The default configu

I'm wondering how to documenting jQuery plugin by using JSDoc? My code is:

   /**
     * The default configurations of ments
     * @typedef {Object} CommentConfig
     ...
     */

   /**
     * Show ments
     * @method ments
     * @version 1.0.1
     * @param {CommentConfig} options Configuration of ment
     */
    $.fnments = function (options) {
        // ..
    }

I want @method is $.fnments but it doesn't work.

I'm wondering how to documenting jQuery plugin by using JSDoc? My code is:

   /**
     * The default configurations of ments
     * @typedef {Object} CommentConfig
     ...
     */

   /**
     * Show ments
     * @method ments
     * @version 1.0.1
     * @param {CommentConfig} options Configuration of ment
     */
    $.fn.ments = function (options) {
        // ..
    }

I want @method is $.fn.ments but it doesn't work.

Share Improve this question edited Dec 9, 2017 at 18:12 Cœur 38.8k25 gold badges206 silver badges278 bronze badges asked Jul 23, 2014 at 4:13 ducdhmducdhm 1,95215 silver badges26 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

Acording to JSDoc3 docs you should use @external in your case:

/**
 * The jQuery plugin namespace.
 * @external "jQuery.fn"
 * @see {@link http://docs.jquery./Plugins/Authoring The jQuery Plugin Guide}
 */

/**
 * Show ments
 * @function external:"jQuery.fn".ments
 */

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745185189a4615603.html

相关推荐

  • javascript - jQuery plugin documentation with JSDoc - Stack Overflow

    I'm wondering how to documenting jQuery plugin by using JSDoc? My code is:*** The default configu

    9小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信