Skip to content

Commit

Permalink
Docs: Update create-and-import-modules.md (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricosmall committed Dec 29, 2023
1 parent b826507 commit c3e5f29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ print(result)

特性 | JavaScript | Python
--- | --- | ---
导入模块 | `import foo from 'module'` | `import foo`
导入模块 | `import foo from 'module'` | `import module`
从模块导入特定成员 | `import { foo, bar } from 'module'` | `from module import foo, bar`
将模块导入为别名 | `import { foo as alias } from 'module'` | `from module import foo as alias`
将整个模块导入为别名 | `import * as alias from 'module'` | `import module as alias`
Expand Down

0 comments on commit c3e5f29

Please sign in to comment.