我正在做一个带有javascript 库的blockly的项目,我不明白Blockly.FieldDropdown函数的 menuGenerator 变量接受什么类型的参数。在这里你可以看到感兴趣的代码:
/**
* Class for an editable dropdown field.
* @param {(!Array.<!Array>|!Function)} menuGenerator An array of options
* for a dropdown list, or a function which generates these options.
* @param {Function=} opt_validator A function that is executed when a new
* option is selected, with the newly selected value as i ts sole
argument.
* If it returns a value, that value (which must be one of the options)
will
* become selected in place of the newly selected option, unless the
return
* value is null, in which case the change is aborted.
* @extends {Blockly.Field}
* @constructor
*/
Blockly.FieldDropdown = function(menuGenerator, opt_validator) {
我不明白@param {(!Array.|!Function)}是什么意思