为什么80%的码农都做不了架构师?>>> 抛出异常 throw(new Error(-1, "出错了!")); 捕获异常 try { ... ... }catch(e){ ... ... } 转载于:https://my.oschina.net/webas/blog/109712