Update ES6_基础.md
This commit is contained in:
parent
2d118bd0da
commit
d96d356ecf
@ -265,7 +265,7 @@ console.log("hello".repeat(2));
|
||||
|
||||
### 2.2 模板字面量
|
||||
|
||||
在 ES6 中,你可以使用 **`** **`** 来创建模板字面量,它具有以下特性:
|
||||
在 ES6 中,你可以使用 **\` \`** 来创建模板字面量,它具有以下特性:
|
||||
|
||||
+ 支持在内部使用 `${}` 来引用变量或有效的 JS 表达式;
|
||||
+ 支持多行字符串。
|
||||
|
Loading…
x
Reference in New Issue
Block a user