刷新页面分两种情况:

1.普通页面刷新

window.location.reload()

 

2.window.showModalDialog 打开的模态窗口

在模态窗口需要添加标签<base target="_self"/>到head中

内部运行js:

var url=location.href;

var a=$("<a  href='"+url+"' >reload...</a>").appendTo(document.body);

a.get(0).click();

 

两种刷新方式不能混用,否则无效

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-12-16
  • 2021-08-20
  • 2022-01-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案