我想知道在执行JS try/catch时是否有办法不指定参数.每次我尝试这个时,try/catch都不起作用.
工作版本:
try{
//Breaking code
} catch(e){
//Nothing happens here
}
Run Code Online (Sandbox Code Playgroud)
我的想法(不'e'):
try{
//Breaking code
} catch(){
//Nothing happens here
}
Run Code Online (Sandbox Code Playgroud)