跳到主要内容

设置自定义函数

更新本地自定义函数库。

语法

expression.SetCustomFunctions(jsonString);

expression - 表示 Api 类的变量。

参数

名称必填/选填数据类型默认值说明
jsonString必填stringJSON 格式的自定义函数库。

返回值

此方法不返回任何值。

示例

window.Asc.plugin.executeMethod ("SetCustomFunctions", [JSON.stringify (Content)], function () {
window.Asc.plugin.executeCommand ("close", "");
});