Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个部署为 web 应用程序的谷歌脚本。此 webapp 需要使用 webapp 的 URL 发送电子邮件,以便收件人可以使用该 URL 访问 webapp。如何在 webapp 中获取 URL?
您可以使用ScriptApp.getService().getUrl();在代码中获取已发布应用的 URL。
ScriptApp.getService().getUrl();