Bru*_*uce 7 javascript ecmascript-6 template-literals tagged-templates
我遇到过这个例子,完全迷失了......
const test = (hey) => console.log(hey);
console.log(test `wtf`);
Run Code Online (Sandbox Code Playgroud)
首先这一切都是有效的,在console.log中,它似乎是
["wtf", raw: Array[1]]
Run Code Online (Sandbox Code Playgroud)
这就像功能已被执行并有额外的raw?有人可以解释一下吗?
| 归档时间: |
|
| 查看次数: |
853 次 |
| 最近记录: |