Nodejs try/catch捕捉异常失效场景

先看一个和异步无关的错误处理 var test = undefined; try{ var f1 = function(){ console.log(test.toString()); } } catch(e){ console.log('error..'); } //TypeError: Cannot read property 'toString
相关文章
相关标签/搜索