给表格绑定数据源时 TypeError: g.id is not a function报错
var table = yeSheet.tables.add('tableSales', 0, 0, 6, 6);
var tableColumn1 = spreadNS.Tables.TableColumn(1, "name", "资产负债表项目", );
var tableColumn2 = spreadNS.Tables.TableColumn(2, "subjectCodeCol", "科目编码");
var tableColumn3 = spreadNS.Tables.TableColumn(3, "subjectNameCol", "科目名称");
var tableColumn4 = spreadNS.Tables.TableColumn(4, "directionName", "方向", );
var tableColumn5 = spreadNS.Tables.TableColumn(5, "preAmount", "年初余额");
var tableColumn6 = spreadNS.Tables.TableColumn(6, "amount", "期末余额", );
table.autoGenerateColumns(false);
table.bind([tableColumn1, tableColumn2, tableColumn3, tableColumn4, tableColumn5,tableColumn6], 'ye', dataObj);
|