我有一个JavaScript单例定义如下:
/**
* A description here
* @class
*/
com.mydomain.ClassName = (function(){
/**
* @constructor
* @lends com.mydomain.ClassName
*/
var ClassName = function(){};
/**
* method description
* @public
* @lends com.mydomain.ClassName
*/
ClassName.prototype.method1 = function(){};
return new ClassName();
})();
在详细模式(-v)下不会打印警告,但文档仅报告“com.mydomain.ClassName()”,描述为“此处有一个描述”...我该如何生成ClassName方法的文档?