我想在Excel中编写一个运行时值。请查看下面的代码并还原:
var Text1
global.store.v = Text1
var address_of_cell = 'B3';
desired_cell = worksheetEdit[address_of_cell].v;
worksheetEdit[address_of_cell].v = Text1;
XLSX.writeFile(workbookEdit, 'C:/eclipse/ABC/ABCSample1.xlsx');
这里的global.store是我捕获的运行时值。
目前在excel中显示空白值。
我也尝试过这个:
global.store.then(function(text){
var address_of_cell = 'B3';
desired_cell = worksheetEdit[address_of_cell].v;
return worksheetEdit[address_of_cell].v = text;
XLSX.writeFile(workbookEdit, 'C:/eclipse/ABC/ABCSample1.xlsx');
});
但不起作用