Skip to content

Commit ce84b7b

Browse files
lycheeEngleviding
andauthored
Update 1-js/13-modules/02-import-export/article.md
Co-Authored-By: LeviDing <imdingxuewen@gmail.com>
1 parent e5c3403 commit ce84b7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

1-js/13-modules/02-import-export/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ import MyUser from './user.js'; // works too
296296
// 使用任何名称导入都没有问题
297297
```
298298

299-
对于相同的导入,团队成员可能使用不同的命名,因此,默认导出的命名可能会被滥用
299+
对于相同的导入,团队成员可能使用不同的命名,因此,默认导入的命名可能会被滥用
300300

301301
通常,为了避免这种情况并保持代码的整洁一致,可以遵从下面这条规则,即导入的变量应该与文件名相对应,例如:
302302

0 commit comments

Comments
 (0)