举例代码如下,请默认实际情况中arr中的数字是不连续的
let arr = []for(i=0;i<9999;i++){arr.push(i)}
let formula = '=SUBTOTAL(9,'
arr.map(ele => {
formula += `K${ele},`
})
formula = formula.substring(0, formula.length - 1)
formula += ')'
以下行会报错
this.handleGetSheet().setFormula(0, 10, formula)