(一)在function里面
(1)return;
(2)return false;

(二)非function方法里面
alert("before error.");
throw SyntaxError();
alert("after error.");

(三)非function方法里面

 $("body").on("tap",".go-detail",function(e){

 e.preventDefault();
 e.stopPropagation();
}

相关文章: