window.open的页面如何刷新(父页面)上层页面_javascript技巧
来源:动视网
责编:小采
时间:2020-11-27 21:06:18
window.open的页面如何刷新(父页面)上层页面_javascript技巧
window.open的页面如何刷新(父页面)上层页面_javascript技巧: 代码如下: this.ClientScript.RegisterStartupScript(this.GetType(), this.Title, window.opener.location.reload();alert('销帐成功!');, true); 主要是这段js代码:window.opener.location.reload();
导读window.open的页面如何刷新(父页面)上层页面_javascript技巧: 代码如下: this.ClientScript.RegisterStartupScript(this.GetType(), this.Title, window.opener.location.reload();alert('销帐成功!');, true); 主要是这段js代码:window.opener.location.reload();

代码如下:
this.ClientScript.RegisterStartupScript(this.GetType(), this.Title, "window.opener.location.reload();alert('销帐成功!');", true);
主要是这段js代码:window.opener.location.reload();
如果没特殊要求,可以考虑用div
window.open的页面如何刷新(父页面)上层页面_javascript技巧
window.open的页面如何刷新(父页面)上层页面_javascript技巧: 代码如下: this.ClientScript.RegisterStartupScript(this.GetType(), this.Title, window.opener.location.reload();alert('销帐成功!');, true); 主要是这段js代码:window.opener.location.reload();