如果是自定义的类型,那么导入导出的时候都需要声明。例如
function CustomerCondition(compareType, expected, formula){
var self = this;
self.ignoreBlank = false;
self.conditionType = "CustomerCondition";
self.compareType = compareType;
self.expected = expected;
self.formula = formula;
};
CustomerCondition.prototype = new GcSpread.Sheets.CellValueCondition();
CustomerCondition.prototype.evaluate = function(evaluator, baseRow, baseColumn, actualValue){
if(actualValue === this.expected){
return true;
}
else{
return false;
}
}
这段代码,您导入的时候也需要将这段代码进行声明,放置在全局中 |