📜  nodejs中回调函数中的错误处理 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:12.436000             🧑  作者: Mango

代码示例1
fs.readFile('/foo.txt', function(err, data) {
  // TODO: Error Handling Still Needed!
  console.log(data);
});