vue的简单循环

    if="seller.supports" class="supports">
  • for="(item,index) in seller.supports"> {{seller.supports[index].description}}

数据

"seller": {
    "supports": [
      {
        "type": 0,
        "description": "在线支付满28减5"
      },
      {
        "type": 1,
        "description": "VC无限橙果汁全场8折"
      },
      {
        "type": 2,
        "description": "单人精彩套餐"
      },
      {
        "type": 3,
        "description": "该商家支持发票,请下单写好发票抬头"
      },
      {
        "type": 4,
        "description": "已加入“外卖保”计划,食品安全保障"
      }
    ]
}

 

转载于:https://www.cnblogs.com/s42-/p/10135535.html

你可能感兴趣的:(vue的简单循环)