mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
docs(string): edit string
This commit is contained in:
+2
-1
@@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user