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 window.location.href=window.location.href返回空白页_Google Apps Script_Iframe_Web Applications - Fatal编程技术网

Google apps script window.location.href=window.location.href返回空白页

Google apps script window.location.href=window.location.href返回空白页,google-apps-script,iframe,web-applications,Google Apps Script,Iframe,Web Applications,我正在使用谷歌应用程序脚本创建一个webapge。点击一个按钮后,我试图重新加载一个页面,但下面的所有操作都无效 window.location.href=window.location.href window.location.reloadtrue 他们正在重定向到空白页下面的代码片段成功了 var url='myURL' window.top.location=url欢迎使用堆栈溢出。请阅读,以及可能的副本

我正在使用谷歌应用程序脚本创建一个webapge。点击一个按钮后,我试图重新加载一个页面,但下面的所有操作都无效

window.location.href=window.location.href window.location.reloadtrue
他们正在重定向到空白页

下面的代码片段成功了

var url='myURL'
window.top.location=url

欢迎使用堆栈溢出。请阅读,以及可能的副本