07 2023 档案
摘要:1.引入threejs npm install --save three 在组件内 import * as THREE from 'three' 2.创建容器 创建canvas标签,为3D渲染建立容器 <template> <div> <canvas id="three"></canvas> </d
阅读全文
摘要:一.命名 1.尽量字母开头字母结尾 2.构造函数以大写字母开头,避免方法(少用构造函数) 3.名字中不允许存在空格,原因在于早期编译器的内存管理,后期未修改规则 4.保留字 arguments await break case catch class const continue debugger
阅读全文