| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -603,7 +603,7 @@ $ hello.js | |||
| 603 | 603 | ||
| 604 | 604 | ## import.meta | |
| 605 | 605 | ||
| 606 | - 开发者使用一个模块时,有时需要知道模板本身的一些信息(比如模块的路径)。现在有一个[提案](https://github.com/tc39/proposal-import-meta),为 import 命令添加了一个元属性`import.beta`,返回当前模块的元信息。 | ||
| 606 | + 开发者使用一个模块时,有时需要知道模板本身的一些信息(比如模块的路径)。现在有一个[提案](https://github.com/tc39/proposal-import-meta),为 import 命令添加了一个元属性`import.meta`,返回当前模块的元信息。 | ||
| 607 | 607 | ||
| 608 | 608 | `import.meta`只能在模块内部使用,如果在模块外部使用会报错。 | |
| 609 | 609 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments