1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-28 04:42:21 +00:00

docs(string): fix #942

This commit is contained in:
ruanyf 2020-01-17 00:50:08 +08:00
parent 942bcc3ee2
commit 0d958f5c62

View File

@ -421,7 +421,7 @@ div.innerHTML = parse({ supplies: [ "broom", "mop", "cleaner" ] });
```javascript
alert`123`
// 等同于
alert(123)
alert([123])
```
标签模板其实不是模板,而是函数调用的一种特殊形式。“标签”指的就是函数,紧跟在后面的模板字符串就是它的参数。