📜  使用带日期角度的 Promis - Javascript 代码示例

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

代码示例1
lastUpdate: Promise = new Promise(
  (resolve, reject) => {
    const date = new Date();
    setTimeout(
      () => {
        resolve(date);
      }, 2000
    );
  }
);