<script src="./OrbitControls.js"></script>
<!-- <script src="http://www.yanhuangxueyuan.com/versions/threejsR92/build/three.js"></script> -->
我明明引入了OrbitControls.js,为啥还是报错,
THREE.OrbitControls = function ( object, domElement ) //X
OrbitControls.js:16 Uncaught ReferenceError: THREE is not defined
at OrbitControls.js:16
————————————————————————————————————————————————
啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
害我去找了了一圈,说引入的版本不对,那我就去在线实例里面引入了别人的地址:
<script src="http://www.yanhuangxueyuan.com/versions/threejsR92/build/three.min.js"></script>
<script src="http://www.yanhuangxueyuan.com/versions/threejsR92/examples/js/controls/OrbitControls.js"></script>
球球你们给我点个赞,奥里给。