0
点赞
收藏
分享

微信扫一扫

本地数据结构

json是对象

数组在对象里

{
row:[
]
}

多个对象在数组里

row:[
{
storeName: '',
storeId: '',
avatar: ''
GoodList: [{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''}],
addressList: [{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''}]
},
{
storeName: '',
storeId: '',
avatar: ''
GoodList: [{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''}],
addressList: [{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''}]
},
{
storeName: '',
storeId: '',
avatar: ''
GoodList: [{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''}],
addressList: [{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''},{id: '',address: '',name: '',mobile: ''}]
}
]

多个属性在对象里

{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''},{id: '',goodsImage: '',goodsTitle: '',goodsDesc: ''}


举报

相关推荐

0 条评论