瀏覽代碼

README: Fixed import path.

Mr.doob 5 年之前
父節點
當前提交
34af368f97
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -25,7 +25,7 @@ The aim of the project is to create an easy to use, lightweight, 3D library with
 This code creates a scene, a camera, and a geometric cube, and it adds the cube to the scene. It then creates a `WebGL` renderer for the scene and camera, and it adds that viewport to the `document.body` element. Finally, it animates the cube within the scene for the camera.
 
 ```javascript
-import * as THREE from 'js/three.module.js';
+import * as THREE from './js/three.module.js';
 
 var camera, scene, renderer;
 var geometry, material, mesh;