雪花

二、jquery Try{}catch(e){}

一、Try{}catch(e){}

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

  

posted @ 2019-05-16 14:29  十色  阅读(4217)  评论(0编辑  收藏  举报