ExcelJS BUG
注入下拉选项方式:['"' +array.join(",") + '"']
Q:存在长度限制,字符串过长时,将导致下拉选项为空
worksheet.getCell('A1').dataValidation = {
type: 'list',
allowBlank: true,
formulae: ['"' +array.join(",") + '"'],
showErrorMessage: true,
error: "请从下拉列表中选择有效选项",
errorTitle: "无效输入"
};