我想知道如何使用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) {
// ..
}
我希望 @method
是 $.fn.comments
,但它无法正常工作。