WEB骇客
 <script>
        function addTextToBody(text) {
          const div = document.createElement('div');
          div.textContent = text;
          document.body.appendChild(div);
        }
      </script>
      <script type="module" async src="/demos/es-modules-in-browsers/slow.js"></script>
      <script type="module" async>
        import "/demos/es-modules-in-browsers/slow.js?";
        addTextToBody("Inline-slow executed");
      </script>
      <script type="module" async src="/demos/es-modules-in-browsers/fast.js"></script>
      <script type="module" async>
        import "/demos/es-modules-in-browsers/fast.js?";
        addTextToBody("Inline-fast executed");
      </script>
body{margin:2rem; line-height:2rem}
返回