本帖最后由 rogergou 于 2018-1-12 17:25 编辑
你好, 您实际试过没有啊 arguments[0] 是自定义函数的第一个参数呀
这是我的自定义函数:
function XXXXEvaluate() {
this.name = "XXXXEVAL";
this.maxArgs = 2;
this.minArgs = 2;
}
XXXXEvaluate.prototype = new GC.Spread.CalcEngine.Functions.Function();
XXXXEvaluate.prototype.toJSON = function () {
var settings = {};
settings.typeName = this.name;
return settings;
};
XXXXEvaluate.prototype.fromJSON = function (settings) {
this.name = settings.typeName;
};
XXXXEvaluate.prototype.evaluate = function (first_para,second_para) {
var curSheet = spread.getActiveSheet();
var curCol = curSheet.getActiveColumnIndex();
var curRow = curSheet.getActiveRowIndex();
...................... 一些业务处理
}
|