alert 如何屏蔽
alert 如何屏蔽
可以在浏览器的开发者工具中的Console栏中输入下面这行代码,然后回车
window.alert = function() {};
下面这些代码是测试用例,可以忽略
x=1;
window.alert = function() { console.log('很好,很满意。'+ x++)};

网站:http://shibowl.top
github:https://github.com/hanbinjxnc
博客园:https://www.cnblogs.com/hool
博客:https://blog.shibowl.top
淘宝店:https://boxunwl.taobao.com/
作者:世博 2019年4月28日----
github:https://github.com/hanbinjxnc
博客园:https://www.cnblogs.com/hool
博客:https://blog.shibowl.top
淘宝店:https://boxunwl.taobao.com/
作者:世博 2019年4月28日----
浙公网安备 33010602011771号