Skip to content

Commit e11bc61

Browse files
authored
Merge pull request ruanyf#710 from juzhiyuan/patch-1
Update module.md
2 parents e85f4dd + efafe67 commit e11bc61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export default 42;
453453
export 42;
454454
```
455455

456-
上面代码中,后一句报错是因为没有指定对外的接口,而前一句指定外对接口为`default`
456+
上面代码中,后一句报错是因为没有指定对外的接口,而前一句指定对外接口为`default`
457457

458458
有了`export default`命令,输入模块时就非常直观了,以输入 lodash 模块为例。
459459

@@ -643,7 +643,7 @@ export {users} from './users';
643643

644644
```javascript
645645
// script.js
646-
import {db, users} from './index';
646+
import {db, users} from './constants/index';
647647
```
648648

649649
## import()

0 commit comments

Comments
 (0)