在a页面打开了一个新页面b,b页面完成数据库操作后怎么自动刷新a页面?

                         <shiro:hasPermission name="notice:save">
                            <li><a href="${ctx}/sysNotice/addNotice" title="新增通知公告"
                                class="J_menuItem"><i class="fa fa-plus-square-o"></i> 新增</a></li>
                        </shiro:hasPermission>

a页面打开新页面方式如上。

页面之前的通信只能用https://www.cnblogs.com/codetker/p/4684240.htmlhttps://blog.csdn.net/weixin_30561425/article/details/101564411一般都是本地存储和window

a页面刚打开时,调用接口1,拿到数据1(旧)。跳转至页面b,b页面进行操作,操作调接口2。接口2调通后,数据库发生变化,对接口1造成影响。此时接口1再次被调用时,数据1变化了。下次进去页面a,调通接口1,拿到数据1(新)。

b是怎么打开的?就这个代码看不出b怎么加载的。如果是新选项卡打开的话,b中用opener.location.reload()刷新a

如果b是iframe引入的,用top.location.reload()刷新

可以给b页面增加一个按钮点击返回a页面,然后给按钮绑定单击事件,内容是

location.href=history.back();

超链接打开一个新的jsp