function demo(){
if(!q){
throw "undefined"
}
}
try{
demo();
}catch(e){
alert(e);
}
JavaScript 异常
最新推荐文章于 2024-07-21 17:06:59 发布
function demo(){
if(!q){
throw "undefined"
}
}
try{
demo();
}catch(e){
alert(e);
}