0
我想我应该用一个脚本可以一次添加多个列表项,如:使用谷歌应用程序脚本谷歌应用程序脚本创建末页时listItems
page.addListItems([["John", "Smith", "123 Main St"],["John", "Smith", "123 Main St"]];
。但是,我只能找到函数来做到这一点:
page.addListItem(["John", "Smith", "123 Main St"]);
我发现的问题是,以这种方式加入名单是很慢的(3秒钟/列表项),之前我不能添加超过大约100 listItems中更我的脚本超时(大约五分钟)。这可以通过减少对Google脚本的调用来解决 - 但我需要知道这个秘密代码。