📜  承诺前. - Javascript代码示例

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

代码示例1
console.log('some piece of code');
examplePromise.then(function(result){
  console.log(result);
}).catch(function (error) {
  console.error(error);
});
console.log('another piece of code');