xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

script & type="text/typescript" All In One

script & type="text/typescript" All In One


<script type="text/typescript">

https://www.sololearn.com/Codes?ordering=Trending&query=typescript

https://stackoverflow.com/questions/14015899/embed-typescript-code-in-an-html-document

refs

js importmap

image

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap


<script type="importmap">
    {
      "imports": {
        "three": "https://cdn.jsdelivr.net/npm/three@0.160.0/+esm",
        "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/",
        "@tweenjs/tween.js": "https://cdn.jsdelivr.net/npm/@tweenjs/tween.js@23.1.1/dist/tween.esm.js",
        "canvas-confetti": "https://cdn.jsdelivr.net/npm/canvas-confetti@1.9.2/+esm"
      }
    }
  </script>
  <script type="module">
    import * as THREE from 'three';
    import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
    import { TextGeometry } from 'three/addons/geometries/TextGeometry.js';
    import { FontLoader } from 'three/addons/loaders/FontLoader.js';
    import * as TWEEN from '@tweenjs/tween.js';
    import confetti from 'canvas-confetti';
	// ...
  </script>

https://www.cnblogs.com/xgqfrms/p/18099647



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2021-07-02 00:47  xgqfrms  阅读(130)  评论(3编辑  收藏  举报