Skip to content

Commit 2dbd318

Browse files
authored
Update module.md
1 parent f301b5d commit 2dbd318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/module.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function setName(element) {
205205
import { lastName as surname } from './profile';
206206
```
207207

208-
`import`后面的`from`指定模块文件的位置,可以是相对路径,也可以是绝对路径,`.js`路径可以省略。如果只是模块名,不带有路径,那么必须有配置文件,告诉 JavaScript 引擎该模块的位置。
208+
`import`后面的`from`指定模块文件的位置,可以是相对路径,也可以是绝对路径,`.js`后缀可以省略。如果只是模块名,不带有路径,那么必须有配置文件,告诉 JavaScript 引擎该模块的位置。
209209

210210
```javascript
211211
import {myMethod} from 'util';

0 commit comments

Comments
 (0)