侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

angular 中内循环ng-repeat

2023-12-18 星期一 / 0 评论 / 0 点赞 / 23 阅读 / 3212 字

<div class="phoneRow" ng-repeat="obj in recommend"> <div class="phoneLeft"> <img ng-src={{o

<div class="phoneRow" ng-repeat="obj in recommend">
                    <div class="phoneLeft">
                        <img ng-src={{obj['icon_path']}}>
                    </div>
                    <div class="phoneRight">
                        <div class="contai top">
                            <div style="height:20px;color:#212121;font-size:18px">
                                {{obj['name']}}
                            </div>
                            <div style="height:20px;color:#727272;font-size:16px">
                                {{obj['type']}}
                            </div>
                            <div style="height:20px;margin-left:-5px;">
                                <span ng-repeat = "star in obj['star'] track by $index">
                                    <img src={{star}}>
                                </span>
                                
                            </div>
                        </div>
                    </div>
                </div>

广告 广告

评论区