- 依然报错 Uncaught SyntaxError: Invalid regular expression flags (at add.html:72:38)
- var designer = new GC.Spread.Sheets.Designer.Designer(document.getElementById("ss"));
- var workbook = designer.getWorkbook();
- var sheet = workbook.getActiveSheet();
- var config = GC.Spread.Sheets.Designer.DefaultConfig;
- config.commandMap = {
- save: {
- title: "保存",
- text: '保存',
- iconClass: "img",
- bigButton: "true",
- commandName: "函数",
- execute: function (context){
- let spread=context.Spread;
- var jsonString = JSON.stringify(spread.toJSON({includeBindingSource: true}));
- console.log(jsonString)
- }
- },
- }
复制代码 |