我们在前端执行判断时如果条件不成立就让他禁止执行后边的程序 分三种方法:
一)在function里面
(1)return;
(2)return false;
(1)return;
(2)return false;
(二)非function方法里面
alert(“before error.”);
throw SyntaxError();
alert(“after error.”);
alert(“before error.”);
throw SyntaxError();
alert(“after error.”);
(三)非function方法里面
$(“body”).on(“tap”,”.go-detail”,function(e){
最新评论
我这边UI界面用React重写了,地址是 https://vps.kkwen.cn,有需要可以提供给你
Thankfulness to my father who told me concerning this webpage, this web site is genuinely remarkable