【发布时间】:2013-11-10 18:07:48
【问题描述】:
有没有办法将一些功能移动到谷歌应用脚本中的单独文件中?目前我的 Code.gs 如下所示:
function onSubmit(e) {}
function readSpreadsheet(sheet) {}
function writeSpreadsheet(sheet, data) {}
function sendEmail() {}
function helperLogic1() {}
function helperLogic2() {}
function helperLogic3() {}
function helperLogic4() {}
所以为了让我的代码看起来更好;p ..我想将与电子表格相关的函数移动到电子表格.gs 电子邮件到 email.gs 等。所以在移动它们之后,我如何从 code.gs 加载它?
谢谢
【问题讨论】:
标签: javascript google-apps-script refactoring google-sheets