解决JQuery MiniUI前端库到期alert弹窗

MINIUI的到期提示是通过JS的Alert 方法弹出的。

那么我们可以不可以截获所有Alert方法,过滤文本。然后….你们懂得

我们只需要在页面底部加入:

 

var WinAlerts = window.alert;

 

window.alert = function (e) {
if (e != null && e.indexOf(“提示内容”)>-1)

//和谐了
}
else
{
WinAlerts (e);
}

};

相关文章:

  • 2022-01-10
  • 2021-12-06
  • 2021-06-09
  • 2021-12-21
  • 2021-12-20
  • 2022-03-03
  • 2021-09-29
  • 2022-02-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-10
  • 2021-11-29
  • 2022-02-08
相关资源
相似解决方案