📜  如何在 javascript 代码示例中显示错误消息

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

代码示例1
//to display error message just put this code at the end of your brackets
.catch((err) =>{
    console.log(err);