给定一个模块,如:
/** Config module
* @module Config
*/
export default class Config {
...
当指定为参数时,如何指定指向Config模块的链接?
/**
* Foo
* @module Foo
*/
export default class Foo {
/**
* Create a new instance
* @constructor
* @param {Config} config - the config
*/
constructor(config) {
this.config = config;
}
我似乎无法将Config注册为链接
发布于 2018-08-28 05:47:37
带有module:
的简单前缀
见下文
/**
* Foo
* @module Foo
*/
export default class Foo {
/**
* Create a new instance
* @constructor
* @param {module:Config} config - the config
*/
constructor(config) {
this.config = config;
}
https://stackoverflow.com/questions/52041301
复制相似问题