@any86/sleep 延迟, 模拟PHP的sleep函数 安装 npm i -S @any86/sleep 快速开始 import sleep from '@any86/sleep'; // 延迟2秒 await sleep(2000);