我想知道如何使用JSDoc记录jQuery插件?我的代码是:
/**
* The default configurations of comments
* @typedef {Object} CommentConfig
...
*/
/**
* Show comments
* @method comments
* @version 1.0.1
* @param {CommentConfig} options Configuration of comment
*/
$.fn.comments = function (options) {
// ..
}
Run Code Online (Sandbox Code Playgroud)
我希望@method
是$.fn.comments
,但它不工作.