aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-09-07 22:56:20 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2021-09-07 22:56:20 +0900
commitdb091658bee048cac6a43ab7fe346ea7d420818a (patch)
treef551c4caac755cf43c99a5dccab68da21bf16765 /files/zh-cn/web/javascript/reference/global_objects
parentfe6f6abf2b7c497bf1f97f73a82dde7cf48eb79f (diff)
parent33a5bcbcd367750dc0b7376f692d5aacfb799303 (diff)
downloadtranslated-content-db091658bee048cac6a43ab7fe346ea7d420818a.tar.gz
translated-content-db091658bee048cac6a43ab7fe346ea7d420818a.tar.bz2
translated-content-db091658bee048cac6a43ab7fe346ea7d420818a.zip
Merge branch 'main' into 20210818-Glossary/Type
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/object/seal/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/string/raw/index.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/seal/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/seal/index.html
index 7a18ee2e91..6fd23f3d1d 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/object/seal/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/object/seal/index.html
@@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/seal
<div></div>
-<div>{{EmbedInteractiveExample("pages/js/object-prototype-seal.html")}}</div>
+<div>{{EmbedInteractiveExample("pages/js/object-seal.html")}}</div>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/raw/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/raw/index.html
index 8ff8794000..989a78f2c6 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/string/raw/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/string/raw/index.html
@@ -55,10 +55,10 @@ String.raw`templateString`
<h3 id="使用_String.raw">使用 <code>String.raw()</code></h3>
<pre class="brush: js">String.raw`Hi\n${2+3}!`;
-// 'Hi\n5!',Hi 后面的字符不是换行符,\ 和 n 是两个不同的字符
+// 'Hi\\n5!',Hi 后面的字符不是换行符,\ 和 n 是两个不同的字符
String.raw `Hi\u000A!`;
-// "Hi\u000A!",同上,这里得到的会是 \、u、0、0、0、A 6个字符,
+// "Hi\\u000A!",同上,这里得到的会是 \、u、0、0、0、A 6个字符,
// 任何类型的转义形式都会失效,保留原样输出,不信你试试.length
let name = "Bob";