我的ejs模板是这样子的: <% if(error){ %> <%- include error.html %> <% }%>
在测试的时候,按理传入的response里没有error的时候,error.html是不加载的 但是我测试出来的结果它不管error是否为真都加载. 是我写错了还是ejs有问题?0.8.4版本的
if(error !== null)
CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。
if(error !== null)