Skip to content

Commit

Permalink
docs(module): fix import.meta typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Oct 23, 2022
1 parent 7f1acfe commit 406ba6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ main();

## import.meta

开发者使用一个模块时,有时需要知道模板本身的一些信息(比如模块的路径)。[ES2020](https://github.com/tc39/proposal-import-meta)为 import 命令添加了一个元属性`import.meta`,返回当前模块的元信息。
开发者使用一个模块时,有时需要知道模板本身的一些信息(比如模块的路径)。[ES2020](https://github.com/tc39/proposal-import-meta) 为 import 命令添加了一个元属性`import.meta`,返回当前模块的元信息。

`import.meta`只能在模块内部使用,如果在模块外部使用会报错。

Expand Down

0 comments on commit 406ba6d

Please sign in to comment.