Skip to content

Commit 5d5f588

Browse files
committed
docs(module): edit export和import 混合写法
1 parent 6e3dbd9 commit 5d5f588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ import { foo, bar } from 'my_module';
506506
export { foo, bar };
507507
```
508508

509-
上面代码中,`export``import`语句可以结合在一起,写成一行。但需要注意的是实际上foo、bar并没有被导入到当前模块,不能直接使用foo、bar模块
509+
上面代码中,`export``import`语句可以结合在一起,写成一行。但需要注意的是,写成一行以后,`foo``bar`实际上并没有被导入当前模块,只是相当于对外转发了这两个接口,导致当前模块不能直接使用`foo``bar`
510510

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

0 commit comments

Comments
 (0)