diff options
author | t7yang <t7yang@gmail.com> | 2022-01-10 08:38:07 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 563ca0a35e98678e2b7d5f154f31f496851e8d60 (patch) | |
tree | 7c99e7e037128217eca2080df671a742076c615b /files/zh-cn/web/javascript/reference/template_literals | |
parent | d7b2995cabe8d85a1827aa18bc270bdf739f3d13 (diff) | |
download | translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.tar.gz translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.tar.bz2 translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.zip |
remove code tag inside pre tag for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/template_literals')
-rw-r--r-- | files/zh-cn/web/javascript/reference/template_literals/index.html | 4 |
1 files changed, 2 insertions, 2 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 f6dcc23c02..dbd08899c1 100644 --- a/files/zh-cn/web/javascript/reference/template_literals/index.html +++ b/files/zh-cn/web/javascript/reference/template_literals/index.html @@ -170,14 +170,14 @@ tag`string text line 1 \n string text line 2`; <p>另外,使用{{jsxref("String.raw()")}} 方法创建原始字符串和使用默认模板函数和字符串连接创建是一样的。</p> -<pre class="brush: js line-numbers language-js"><code class="language-js">var str = String.raw`Hi\n${2+3}!`;var`Hi\n${2+3} +<pre class="brush: js line-numbers language-js">var str = String.raw`Hi\n${2+3}!`;var`Hi\n${2+3} // "Hi\\n5!" str.length;. // 6 str.split('').join(',');. -// "H,i,\\,n,5,!"</code> +// "H,i,\\,n,5,!" </pre> <h3 id="带标签的模版字面量及转义序列">带标签的模版字面量及转义序列</h3> |