注意是` ,而不是"",也不是’’. var str = "c"; console.log(`${str}`); // c console.log(`aaa${str}`); // aaac 简单来说就是拼接字符串的