用rangeToFormula去转换,参考下方代码:
- var sel = sheet.getSelections();
- var rangeStr = GC.Spread.Sheets.CalcEngine.rangeToFormula(sel[0], 0, 0, GC.Spread.Sheets.CalcEngine.RangeReferenceRelative.allRelative);
- console.log(rangeStr)
复制代码
API链接:
https://demo.grapecity.com.cn/sp ... gine#rangetoformula |