try-catch

try{aaa}catch(error){console.log("参数未定义")}finally{console.log("执行finally语句了")}

try{aaa}catch(error){console.log(error.description)}finally{console.log("执行finally语句了")}

原文地址:https://www.cnblogs.com/lily1010/p/5617486.html