以前项目使用了一个非开源的代码,总是弹出一个对话框,使用此函数屏蔽掉
var WinAlerts = window.alert;
window.alert = function (e) {
if (e != null && e.indexOf(“提示内容”)>-1)
{
//和谐了
}
else
{
WinAlerts (e);
}
};