Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这最终是我想要实现的。
用户点击 Page1
模态窗口打开。
用户点击 Page2
模态窗口刷新到该页面。
/////
但这就是发生的事情
页面更改为 index2.html。
用户单击“Page1”并打开 page1。在 page1 中,用户单击“刷新父级”按钮。然后该按钮激活以下 javascript 命令:
window.opener.location.reload(true);
window.opener 引用父页面,location.reload(true) 刷新页面。