window.location.href = window.location.href返回空白页 [英] window.location.href = window.location.href returning a blank page
本文介绍了window.location.href = window.location.href返回空白页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Google App脚本创建一个Webapge.单击按钮后,我正在尝试重新加载页面,但以下任何一项都不起作用,
I'm creating a webapge using Google App Script. After a button click I'm trying to reload a page and none of the below work,
- window.location.href = window.location.href
- window.location.reload(true)
他们正在重定向到空白页
They are redirecting to a blank page
推荐答案
以下代码段有效
var url ='myURL' window.top.location =网址
var url = 'myURL' window.top.location = url
这篇关于window.location.href = window.location.href返回空白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文