示例工程 07-async-promises

07-async-promises/04-promisify/index.html

html · 0.3 KB

运行:07 · promisify

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>07 · promisify</title>
</head>
<body>
  <p>打开 Console 查看错误优先回调如何转成 Promise。</p>
  <script type="module">
    import { run } from './main.js';
    run();
  </script>
</body>
</html>