0
点赞
收藏
分享

微信扫一扫

PUG_关于if 判断和循环对象数组的使用


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

举报

相关推荐

0 条评论