Update ES6_基础.md

This commit is contained in:
heibaiying 2019-12-16 19:39:05 +08:00 committed by GitHub
parent 2d118bd0da
commit d96d356ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,7 +265,7 @@ console.log("hello".repeat(2));
### 2.2 模板字面量
在 ES6 中,你可以使用 **`** **`** 来创建模板字面量,它具有以下特性:
在 ES6 中,你可以使用 **\` \`** 来创建模板字面量,它具有以下特性:
+ 支持在内部使用 `${}` 来引用变量或有效的 JS 表达式;
+ 支持多行字符串。