0
[
   {
      "user_id":95507,
      "social_id":null,
      "type":2,
      "spr_id":0,
      "link_confirmed":null,
      "sp":[
         {
            "id":"131556",
            "user_id":"95507",
            "spr_id":"1"
         },
         {
            "id":"131557",
            "user_id":"95507",
            "spr_id":"2"
         },
         {
            "id":"131558",
            "user_id":"95507",
            "spr_id":"3"
         },
         {
            "id":"131559",
            "user_id":"95507",
            "spr_id":"4"
         },
         {
            "id":"131560",
            "user_id":"95507",
            "spr_id":"5"
         },
         {
            "id":"131561",
            "user_id":"95507",
            "spr_id":"7"
         }
      ]
   },
   {
      "user_id":95509,
      "social_id":null,
      "type":3,
      "spr_id":1,
      "link_confirmed":null,
      "sp":[

      ]
   },
   {
      "user_id":95510,
      "social_id":null,
      "type":3,
      "spr_id":1,
      "link_confirmed":null,
      "sp":[

      ]
   },
   {
      "user_id":95512,
      "social_id":null,
      "type":2,
      "spr_id":0,
      "link_confirmed":null,
      "sp":[
         {
            "id":"131569",
            "user_id":"95512",
            "spr_id":"1"
         },
         {
            "id":"131570",
            "user_id":"95512",
            "spr_id":"2"
         },
         {
            "id":"131571",
            "user_id":"95512",
            "spr_id":"3"
         }
      ]
   },
   {
      "user_id":95513,
      "social_id":null,
      "type":3,
      "spr_id":1,
      "link_confirmed":null,
      "sp":[

      ]
   },
   {
      "user_id":96276,
      "social_id":null,
      "type":3,
      "spr_id":1,
      "link_confirmed":null,
      "sp":[

      ]
   },
   {
      "user_id":96277,
      "social_id":null,
      "type":3,
      "spr_id":1,
      "link_confirmed":null,
      "sp":[

      ]
   }
]

HTML

<tr ng-repeat="profile in profile_users | filter: { link_confirmed : '!' } | filter: filterExpressions track by $index">
    <td>{{ profile.user_id }}</td>
    <span ng-repeat="spd in profile.sp track by $index">
        {{ (profile.type == 2) ? ($index >= 0 && profile.sp.length - 1 &&  $last-1) ? sp[spd.spr_id] + ", " : sp[spd.spr_id] : '' }}
    </span>
    </td>
</tr>

ng-repeat评论在 Internet Explorer 中显示,同时在其他人上工作正常 AngularJS 不知道为什么我没有更改对我不起作用。请帮助我如何解决这个问题,在此先感谢

更新了 json 格式以便更好地理解请看一下现在让我知道我错在哪里

请注意,这仅在 Internet Explorer 中使用,其他浏览器似乎没有任何问题

4

0 回答 0