在js代码中加入下方代码即可控制页面中alert弹出框不再弹出。
window.alert = function() { return; }
在页面中禁止alert弹出框
原文:https://www.cnblogs.com/wangchw/p/15107985.html