diff --git a/docs/es6.html b/docs/es6.html index d79c9aa2..035cb208 100644 --- a/docs/es6.html +++ b/docs/es6.html @@ -41,7 +41,7 @@
快速浏览 ES2015、ES2016、ES2017、ES2018 及以后的 JavaScript 新特性
new URL('data.txt', import.meta.url)
Node.js 环境中,import.meta.url
返回的总是本地路径,即 file:URL
协议的字符串,比如 file:///home/user/foo.js
import json from "./package.json" assert {type: "json"}
+// 导入 json 文件中的所有对象
+
+const json =
+ await import("./package.json", { assert: { type: "json" } })
+
function* idMaker () {
diff --git a/index.html b/index.html
index 3b6686ce..afe49af3 100644
--- a/index.html
+++ b/index.html
@@ -483,6 +483,9 @@
+
+
+
贡献者列表,由 contributors 自动生成