three.js官网的范例模块 three.js / examples加载过慢
我的解决办法是将其配置到本地http服务
步骤:
1、在three.js官网点击download下载源码
2、通过npm全局安装
npm install http-server -g
这将 http-server 全局安装,以便从命令行运行。
3、打开three.js-master\examples
文件夹,在路径栏输入cmd
打开命令行
输入http-server配置并启动本地服务
访问127.0.0.1:8080