网站首页 站内搜索

搜索结果

查询Tags标签: 21.04,共有 16条记录
  • 笔记 ---- 记于21.04.05 - 04.13

    1、async/await1 标准用法:2 function testAwait (x) {3 return new Promise(resolve => {4 setTimeout(() => {5 resolve(x);6 }, 2000);7 });8 }9 10 async function helloAsync() { 11 var x = await testAwait ("hello world"); 12 console.log(x); …

    2021/4/17 10:55:18 人评论 次浏览
共16记录«上一页12下一页»
扫一扫关注最新编程教程