Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Angular-6 中使用ExcelJS应用数字格式 例如:+ive 数字应该显示相同,-ive 数字应该用小括号括起来这是我的代码
worksheet.getCell('F10').numFmt = '#,##0.00;(#,##0.00)'; worksheet.getCell('F10').value = -28106.53;
值已正确分配给单元格,但#####在保护模式下显示哈希,例如当我从浏览器下载文件时。 启用编辑后:在单元格焦点上正确显示值
#####
我对单元格的某些格式有类似的问题,我使用了{dateFormats:[]}
readFile(filename, {dateFormats:[]})
这对我有用。