示例工程 08-event-loop-concurrency

08-event-loop-concurrency/04-chunked-long-task/index.html

html · 0.3 KB

运行:08 · 长任务分块

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

<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>08 · 长任务分块</title>
</head>
<body>
  <p>打开 Console 查看一次性循环与分块循环的耗时,以及分块期间定时器能否插入。</p>
  <script type="module">
    import { run } from './main.js';
    run();
  </script>
</body>
</html>