admin管理员组文章数量:1414621
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.
1 Answer
Reset to default 7Acording 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
*/
本文标签: javascriptjQuery plugin documentation with JSDocStack Overflow
版权声明:本文标题:javascript - jQuery plugin documentation with JSDoc - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745185189a2646650.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论