字符串模板${}失效

使用字符串模板${}时须要table上面的符号`(反单引号),不是单引号。字符串

console.log(`Server running at http://${hostname}:${port}/`);
相关文章
相关标签/搜索