fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@@ -0,0 +1,22 @@
---
title: Import a Default Export
localeTitle: 导入默认导出
---
## 导入默认导出
导入导出默认值与导入正常导出几乎相同;你只是不需要花括号来定义你从文件导入的名称!
## 提示1
填写空白: `import _ from "file-name"` 。将模块的名称( `subtract` )插入`_` ,并将`"math-functions"`插入`"file-name"`
## 剧透警报 - 提前解决!
## 解:
```javascript
"use strict";
import subtract from "math_functions";
subtract(7,4);
```