PUG_关于if 判断和循环对象数组的使用
#content
if followList.length > 0
each val in followList
.followingGroup
section
img.avatarUrl(src=`${val.avatarUrl}`, alt='')
span.contentName= val.userName
| is now following you.
html 转 pug 在线工具:https://html2jade.org/
pug 中文文档:https://pug.bootcss.com/api/getting-started.html
pug 官方文档:https://pugjs.org/api/getting-started.html
标签:PUG,数组,val,avatarUrl,api,pug,started,循环,https From: https://blog.51cto.com/u_15976398/6166433