场景 : A 页面使用 showModalDialog 打开模态窗口后,进行一系列操作返回数据后关闭模态窗口,A页面获取到模态窗口返回的数据执行完JS操作 A页面被自动提交了。
解决方案 :在showModalDialog页面head中加入 <base target="_self" />
问题解决。
场景 : A 页面使用 showModalDialog 打开模态窗口后,进行一系列操作返回数据后关闭模态窗口,A页面获取到模态窗口返回的数据执行完JS操作 A页面被自动提交了。
解决方案 :在showModalDialog页面head中加入 <base target="_self" />
问题解决。
转载于:https://my.oschina.net/ceekayshen/blog/1544790