In most cases, String.raw() is used with template strings. The first syntax mentioned above is only rarely used, because the JavaScript engine will call this with proper arguments for you, just like with other tag functions.
就像标签模板一样,
var a = 5, b = 10;
tag`Hello ${a + b} world ${a * b}`;
// 转换为 =>
tag(['Hello ', ' world ', ''], 15, 50);
String.raw作为函数的调用方式一般不使用或者说用不到。就像标签模板一样,
模板字符串就自动转化成相应的参数传给函数
(这里只是示例,为了了解String.raw()的用途)