二、jquery Try{}catch(e){}
一、Try{}catch(e){}
try{
$.each($("div"),function(i,item){
if(...){
throw("异常信息");
}
})
}catch(e){
alert(e);
}
点到为止
try{
$.each($("div"),function(i,item){
if(...){
throw("异常信息");
}
})
}catch(e){
alert(e);
}