/** * @module gateHandler * @extends Handler * / /** * 获取gateHandler * @param {Object} app * @return {Object} - 返回Handler类的实例 */ module.exports = function(app) { return new Handler(app); }; /** * * @type Handler * @param {Object} app */ var Handler = function(app) { this.app = app; }; var handler = Handler.prototype; /** * @name queryEntry * @member Handler * @param {string} msg * @param {Object} session * @this Handler * @callback {next} next */ handler.queryEntry = function(msg, session, next) {}
知道上面注释的不对无法生成正确的文档,不知道工厂模式的注释应该怎么用jsDoc来写,求教
人生最曼妙的风景,竟是内心的淡定与从容!