Home > Article > Web Front-end > How to implement JS termination execution
(1) In function
(1) return;
(2) return false;
(2) In non-function method
alert("before error.");
throw SyntaxError();
alert( "after error.");
The above is the entire implementation method of JS termination execution brought to you by the editor