📜  在 javascipt 如何停止进一步的页面处理 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:07.257000             🧑  作者: Mango

代码示例1
if(someEventHappened) return; // Will prevent subsequent code from being executed
alert("This alert will never be shown.");