如何在Google AppMaker中获取该网址?

Sco*_*ott 1 google-app-maker

我想在AppMaker应用程序中获取当前URL.然而,标准的JavaScript方法不起作用,ScriptApp不AppMaker可用,这些对象在AppMaker不返回正确的URL(即从https://script.google.com).

谢谢你的任何建议.

Jua*_*ana 7

您可以运行后端/服务器端脚本并使用Apps脚本

ScriptApp.getService().getUrl()
Run Code Online (Sandbox Code Playgroud)

请参阅doc ScriptApp文档