Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 如何在应用程序脚本中实现goBack函数_Google Apps Script_Google App Maker - Fatal编程技术网

Google apps script 如何在应用程序脚本中实现goBack函数

Google apps script 如何在应用程序脚本中实现goBack函数,google-apps-script,google-app-maker,Google Apps Script,Google App Maker,我在应用程序脚本上有三个html页面,分别是index.html second.html和third.html。我试图实现一个goBack函数,将我从第二页或另一页返回到主页。我试过windwo.history.back,但没用。有人知道我怎么做吗 这应该可以做到: 在UI和onClick事件处理程序上添加按钮小部件,添加以下内容: app.showPage(app.pages.yourHomePage); 请参见下图: Hmm这是一个很好的解决方案,但仅适用于appmaker。我需要它用于谷

我在应用程序脚本上有三个html页面,分别是index.html second.html和third.html。我试图实现一个goBack函数,将我从第二页或另一页返回到主页。我试过windwo.history.back,但没用。有人知道我怎么做吗

这应该可以做到:

在UI和onClick事件处理程序上添加按钮小部件,添加以下内容:

app.showPage(app.pages.yourHomePage);
请参见下图:


Hmm这是一个很好的解决方案,但仅适用于appmaker。我需要它用于谷歌应用程序脚本
windows.history.back()
是你的朋友,但不幸的是,它只在Firefox和Chrome版本(大约在v63之前)中工作。我认为有一个应用程序脚本错误/功能请求来解决它。