也可参考:
- let oldSetValue = GC.Spread.Sheets.Worksheet.prototype.setValue;
- GC.Spread.Sheets.Worksheet.prototype.setValue = function (
- row,
- col,
- value,
- sheetArea,
- ignoreRecalc
- ) {
- console.log(row, col, value);
- if (value == " ") {
- value = null;
- }
- console.log(row, col, value);
- oldSetValue.call(this, row, col, value, sheetArea, ignoreRecalc);
- };
复制代码 |