mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
docs(module): edit module
This commit is contained in:
parent
37603f1074
commit
1a146ddb3e
@ -435,10 +435,10 @@ export 42;
|
|||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
```
|
```
|
||||||
|
|
||||||
如果想在一条`import`语句中,同时输入默认方法和其他变量,可以写成下面这样。
|
如果想在一条`import`语句中,同时输入默认方法和其他接口,可以写成下面这样。
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import _, { each } from 'lodash';
|
import _, { each, each as forEach } from 'lodash';
|
||||||
```
|
```
|
||||||
|
|
||||||
对应上面代码的`export`语句如下。
|
对应上面代码的`export`语句如下。
|
||||||
|
Loading…
x
Reference in New Issue
Block a user