mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-28 21:32:20 +00:00
docs(string): edit string
This commit is contained in:
parent
7f0180caca
commit
a188e963f6
@ -851,7 +851,8 @@ tag`First line\nSecond line`
|
||||
|
||||
function tag(strings) {
|
||||
console.log(strings.raw[0]);
|
||||
// "First line\\nSecond line"
|
||||
// strings.raw[0] 为 "First line\\nSecond line"
|
||||
// 打印输出 "First line\nSecond line"
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user