您好,这样做:
把
sheet.setArray(20, 1, [['','10','40','','']])
sheet.setArray(21, 1, [['','20','50','','']])
sheet.setArray(22, 1, [['','30','60','','']])
sheet.setFormula(23, 1, '=B21+B22-B23')
sheet.setFormula(23, 2, '=C21+C22-C23')
sheet.setFormula(23, 3, '=D21+D22-D23')
改为
sheet.setArray(20, 1, [[undefined,10,40,undefined,undefined]])
sheet.setArray(21, 1, [[undefined,20,50,undefined,undefined]])
sheet.setArray(22, 1, [[undefined,30,60,undefined,undefined]])
sheet.setFormula(23, 1, '=B21+B22-B23')
sheet.setFormula(23, 2, '=C21+C22-C23')
sheet.setFormula(23, 3, '=D21+D22-D23') |