为什么不允许 Three.js 在控制台中打印输出?

问题描述 投票:0回答:1
  1. 看,就像我将“ Three.cjs”文件链接到“index.html”文件的方式 enter image description here

2.这将是我从“ Threejs.org”下载的安装文件 enter image description here

3.作为一个保证,我记得“()”。但是,控制台没有渲染任何内容。 enter image description here enter image description here

.请问有人可以解决这个问题吗?

javascript three.js
1个回答
0
投票

您为您的用例选择了错误的构建文件。请尝试使用

three.module.js
来代替。

如果您是

three.js
的新手,我建议您阅读安装指南以了解更多详细信息。本文解释了设置基本
three.js
项目的不同推荐策略。

© www.soinside.com 2019 - 2024. All rights reserved.