how to catch async error with node.js (express) without using any package

前端 未结 0 1439
感情败类
感情败类 2020-12-05 10:24

i use this function to catch async error it\'s work but i can\'t understand how!?

  const catchAsyncError = fn => {
     return (req, res, next) => {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题