'then' and 'catch' called one after annother

前端 未结 0 458
礼貌的吻别
礼貌的吻别 2021-01-04 05:16

Why \'then\' and \'catch\' is both called if I add callback function?

function sendMail(data, callback) {

    sgMail
        .send(data)
        .then(() =&g         


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