我试着用下面的代码来更新excel表单元格中的数据。该json得到更新,但该excel表的单元格没有得到更新的新值。我们应该做一些写到excel文件的一些代码。谁能帮助我同样的
const XLSX = require('xlsx');
let workbook = XLSX.readFile('test1.xlsx');
let sheetName = workbook.SheetNames[0];
//console.log(sheetName+' sheetName')
let worksheet = workbook.Sheets[sheetName];
console.log(JSON.stringify(worksheet['A2']))
var status =worksheet['A2'].v;
worksheet['A2'].v = 'test'
worksheet['A2'].r = 'test'
worksheet['A2'].h = 'test'
worksheet['A2'].w = 'test'
console.log(worksheet['A2'].v)
console.log(JSON.stringify(worksheet['A2']))