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