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
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, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/14961569.html
未经授权禁止转载,违者必究!