一、Try{}catch(e){}

try{
  $.each($("div"),function(i,item){
    if(...){
    throw("异常信息");
    }	
  })
  
}catch(e){
  alert(e);
}

  

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2021-05-24
  • 2021-08-05
  • 2021-07-31
猜你喜欢
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
相关资源
相似解决方案