|
错误提示:
SyntaxError: missing ) after argument list in while compiling ejs 翻译:编译ejs时参数列表后面缺少 ) 括号 代码如下: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<%- include "header.html" %>
<h2>
内容
</h2>
</body>
</html>
解决方案: 最新ejs中使用include需要使用括号号地址包起来,使用方法如下: <%- include('header.html') %>
也许,你不是因为include报错,可以检查,那里有用到参数,看看参数是否是需要括号 |
|
|