如何使用数组中的批处理操作技术将数据分组到Google Shee Sheep App脚本中以提高执行时间?
如Google App脚本文档中所述,为了提高性能,建议通过使用数组执行批处理操作,以便可以在setValues(array),setFontweights(array),sethorizontalalalailigns的帮助下大大减少数据读取和写作的时间。 (数组)功能。
我不知道如何使用此技术设置边界,因为没有setBorders(数组)函数。
As described in google app script documentation, to improve performance, it is recommended to perform batch operating by using arrays so that the time for data reading and writing can be reduced significantly with the help of setValues(Array), setFontWeights(Array),setHorizontalAlignments(Array) functions.
I wonder how to set the borders using this technique, as there is no setBorders(Array) function.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想快速设置边界,请启用表API服务并调整以下脚本(这是一个示例)
If you want to quickly set borders, enable sheet api service and adapt the following script (this is an example)
您只需将setBorder(和其他功能)应用于一个范围:
You can simply apply setBorder(and other functions) to a range: