aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/template_literals/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript/reference/template_literals/index.html')
-rw-r--r--files/zh-cn/web/javascript/reference/template_literals/index.html8
1 files changed, 2 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/template_literals/index.html b/files/zh-cn/web/javascript/reference/template_literals/index.html
index dbd08899c1..87655274ba 100644
--- a/files/zh-cn/web/javascript/reference/template_literals/index.html
+++ b/files/zh-cn/web/javascript/reference/template_literals/index.html
@@ -170,7 +170,7 @@ tag`string text line 1 \n string text line 2`;
<p>另外,使用{{jsxref("String.raw()")}} 方法创建原始字符串和使用默认模板函数和字符串连接创建是一样的。</p>
-<pre class="brush: js line-numbers language-js">var str = String.raw`Hi\n${2+3}!`;var`Hi\n${2+3}
+<pre class="brush: js">var str = String.raw`Hi\n${2+3}!`;var`Hi\n${2+3}
// "Hi\\n5!"
str.length;.
@@ -245,11 +245,7 @@ latex`\unicode`
<h2 id="浏览器兼容">浏览器兼容</h2>
-<div>
-
-
-<p>{{Compat("javascript.grammar.template_literals")}}</p>
-</div>
+{{Compat}}
<h2 id="相关链接">相关链接</h2>