【发布时间】:2020-01-02 04:28:44
【问题描述】:
是否可以在 ejs 模板中使用复合 if 语句:
<% if(this.thing == 'winner' || that.thing == 'winner') { %>
我知道你可以在 ejs 中使用 if 语句。我正在专门寻找不能在所有 js 模板方案中使用的 compound if 语句的示例。
【问题讨论】:
-
@CharlieH 我看到了那个帖子。我问的是
compoundif 语句,而不是一般的 if 语句
标签: javascript ejs