1
0
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:
ruanyf 2017-08-19 11:11:45 +08:00
parent 7f0180caca
commit a188e963f6

View File

@ -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"
}
```