改一下类型名字就行了:
var oldFormat = GC.Spread.Sheets.CellTypes.Text.prototype.format;
GC.Spread.Sheets.CellTypes.Text.prototype.format = function (value, format, conditionalForeColor, context) {
if (value === 0) {
return "";
}
return oldFormat.call(spread, value, format, conditionalForeColor, context);
} |