Home  >  Article  >  Web Front-end  >  数据保存后,网页没关闭_html/css_WEB-ITnose

数据保存后,网页没关闭_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:22:45991browse

流程是这样的:数据保存后,执行刷新和关闭动作

现在数据已经保存
但是网页没有关闭

window.opener.location = window.opener.location;
window.close();

是不是可能window.opener.location = window.opener.location;这句有问题??
正常情况是可以的
出错的情况是打开了多个不同页面窗口,会不会因为这个原因引起的?

谢谢


回复讨论(解决方案)

哪位大神来帮我分析下可能原因

出错的情况是打开了多个不同页面窗口

这是什么意思呢?

js有报错么?

出错的情况是打开了多个不同页面窗口

这是什么意思呢?
正常情况是对的

偶尔发生窗口没关闭情况时
另外还打开过很多其他的页面

会不会与这有关?

js有报错么?

因为是偶尔出现这种情况的,
所以没法调试,也不知JS是否报错 

偶尔发生窗口没关闭时
另外还打开过很多其他的页面
会不会与这有关?

没有人知道吗

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn