【发布时间】:2011-01-18 21:57:52
【问题描述】:
假设您有以下内容:
var someFunc = function() {
// do something here with arguments
}
你如何正确地证明这个函数可以在 JSDoc 中接受任意数量的参数?这是我最好的猜测,但我不确定它是否正确。
/**
* @param {Mixed} [...] Unlimited amount of optional parameters
*/
var someFunc = function() {
// do something here with arguments
}
【问题讨论】:
标签: javascript jsdoc