1 Star 0 Fork 2

js516008702/threejs

forked from 沈绪哲/threejs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
template.html 698 Bytes
一键复制 编辑 原始数据 按行查看 历史
沈绪哲 提交于 2024-08-07 16:43 +08:00 . save
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>导入模版</title>
<!-- 具体路径配置,你根据自己文件目录设置,我的是课件中源码形式 -->
<script type="importmap">
{
"imports": {
"three": "./lib/three.js-r148/build/three.module.js",
"three/addons/": "./lib/three.js-r148//examples/jsm/"
}
}
</script>
</head>
<body>
<script type="module">
import * as THREE from 'three';
// 浏览器控制台测试,是否引入成功
console.log(THREE.Scene);
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/js516008702_admin_admin/threejs.git
git@gitee.com:js516008702_admin_admin/threejs.git
js516008702_admin_admin
threejs
threejs
master

搜索帮助