Skip to content

Commit c1b0b3f

Browse files
authored
Update module.md
1 parent 9068619 commit c1b0b3f

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
@@ -501,12 +501,12 @@ let o = new MyClass();
501501
```javascript
502502
export { foo, bar } from 'my_module';
503503

504-
// 等同于
504+
// 可以简单理解为
505505
import { foo, bar } from 'my_module';
506506
export { foo, bar };
507507
```
508508

509-
上面代码中,`export``import`语句可以结合在一起,写成一行。
509+
上面代码中,`export``import`语句可以结合在一起,写成一行。但需要注意的是实际上foo、bar并没有被导入到当前模块,不能直接使用foo、bar模块。
510510

511511
模块的接口改名和整体输出,也可以采用这种写法。
512512

0 commit comments

Comments
 (0)