Quantcast
Viewing all articles
Browse latest Browse all 14821

关于ejs模板,forEach中怎么嵌套if语句

刚学习node,用ejs模板,要遍历后台传过来的对象数组,但是要判断一下第一条数据,做特殊处理(就是添加一个类名),这样写又报错,求指教。 Image may be NSFW.
Clik here to view.
untitled1.png


Viewing all articles
Browse latest Browse all 14821

Trending Articles