es6+es7+es8学习笔记 教程

ES8 求幂运算符 console.info(3 ** 3) //27 async await (异步) function doLater(n, x) { //必需要返回一个promise return new Promise((a) => { setTimeout(() => { a(x) console.info(x) }, n) }) }
相关文章
相关标签/搜索