(一)在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();
}

相关文章:

  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-07-02
  • 2022-12-23
  • 2021-11-15
相关资源
相似解决方案