为了账号安全,请及时绑定邮箱和手机立即绑定

JSON数据格式,对象多个图片对象写法哪个是正确的?

JSON数据格式,对象多个图片对象写法哪个是正确的?

慕村9548890 2019-05-14 11:03:38
一个文章,多个图片哪个是正确的?第一个写法:{"status":0,"data":[{"ID":"2","name":"梅西还是那个梅西!","info":"阿根廷也许16强走的更远!","img":{"imgs":"img/photo/20180521-01.jpg","imgs":"img/photo/20180521-02.jpg","imgs":"img/photo/20180521-03.jpg"}},{"ID":"1","name":"梅西还是那个梅西!","info":"阿根廷也许16强走的更远!","imgs":"img/photo/20180521-02.jpg"},]}第二个写法:{"status":0,"data":[{"ID":"2","name":"梅西还是那个梅西!","info":"阿根廷也许16强走的更远!","img":{"imgs1":"img/photo/20180521-01.jpg","imgs2":"img/photo/20180521-02.jpg","imgs3":"img/photo/20180521-03.jpg"}},{"ID":"1","name":"梅西还是那个梅西!","info":"阿根廷也许16强走的更远!","imgs":"img/photo/20180521-02.jpg"},]}
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 1250 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信