【问题标题】:window.location.href = window.location.href returning a blank pagewindow.location.href = window.location.href 返回一个空白页
【发布时间】:2019-12-20 14:48:20
【问题描述】:

我正在使用 Google 应用脚本创建一个 webapge。单击按钮后,我尝试重新加载页面,但以下操作均无效,

  1. window.location.href = window.location.href
  2. window.location.reload(true)

他们正在重定向到一个空白页面

【问题讨论】:

标签: google-apps-script iframe web-applications


【解决方案1】:

下面的 sn-p 工作

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

【讨论】:

    猜你喜欢
    • 2016-10-20
    • 2020-01-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-25
    • 1970-01-01
    • 1970-01-01
    • 2013-01-08
    相关资源
    最近更新 更多