The code copy is as follows:
<script language=javascript>
function window.alert(str){
//This is empty
}
alert("ffffffff");
</script>
Put the overloaded alert function definition function window.alert(str){} into a public js file and you will no longer be troubled by alert
If you want to prompt, use this method to define it
function window.alert(str){
// Open a mode dialog box here to display the str string delay 20ms and close it
}