google-apps-script - google.script.run 的服务器响应处理程序

标签 google-apps-script web-applications

如何使用 google.script.run 为同一个服务器调用指定成功和失败处理程序?

最佳答案

下面的代码应该可以满足您的需要

google.script.run.withFailureHandler(myFailureHandler).withSuccessHandler(handler1);

documented成功和失败处理程序段落中。正文以

开头

You can use any combination of withSuccessHandler, withFailureHandler, and withUserObject.

关于google-apps-script - google.script.run 的服务器响应处理程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11879657/

相关文章:

google-apps-script - Google Sheets 寻找像 VLOOKUP 这样的 google 脚本,但组合找到的值并将它们连接到特定的单元格中

java - 为什么我会收到部署错误?

hibernate - 如何获取 Hibernate 配置属性?

java - 关于不影响服务器启动的Java Web MVC框架的任何建议

带有 Web 服务器 + 应用程序服务器的 Java EE 应用程序

web-applications - 通过javascript/html将网络应用程序安装到主屏幕

javascript - Google Apps 脚本删除自动电子邮件中的 html 标签

javascript - Google Sheets Apps 脚本用于确定 Telegram 群组中的管理员

javascript - 如何在多个 Google 表格中使用多个 OnEdit 函数

google-apps-script - 如何使用 Google Apps 脚本在 Gmail 插件中创建此 UI