Google Apps 脚本可以在终止前更新电子表格吗?

Can a Google Apps script update a spreadsheet before it terminates?

是否可以在脚本仍为 运行 时查看 Apps 脚本对 Google 电子表格所做的更改?

在我看来,如果 Google Apps 脚本对电子表格进行了多次修改,它们都会生效,或者至少它们看起来(在屏幕上)好像只有在脚本终止时才会生效.

Spreadsheetapp.flush()就是答案。

谢谢桑迪好。抱歉,我无法对您的评论投赞成票。