文章博客

技术团队文档示例


async

<h4>async的相关介绍</h4> <pre><code> function timeout(ms) { return new Promise((resolve) =&gt; { setTimeout(resolve, ms); }); } async function asyncPrint(value, ms) { await timeout(ms); console.log(value); } asyncPrint('hello world', 50);</code></pre>

页面列表

ITEM_HTML