将上述的logo换成img,name换成title
时间: 2024-02-26 22:55:36 浏览: 14
好的,以下是将上述返回数组中的"logo"属性替换为"img","name"属性替换为"title"的示例:
```
[
{
"id": 1,
"img": "https://picsum.photos/40/40?random=1",
"title": "大众"
},
{
"id": 2,
"img": "https://picsum.photos/40/40?random=2",
"title": "奥迪"
},
{
"id": 3,
"img": "https://picsum.photos/40/40?random=3",
"title": "宝马"
},
{
"id": 4,
"img": "https://picsum.photos/40/40?random=4",
"title": "奔驰"
},
{
"id": 5,
"img": "https://picsum.photos/40/40?random=5",
"title": "本田"
},
{
"id": 6,
"img": "https://picsum.photos/40/40?random=6",
"title": "丰田"
},
{
"id": 7,
"img": "https://picsum.photos/40/40?random=7",
"title": "福特"
},
{
"id": 8,
"img": "https://picsum.photos/40/40?random=8",
"title": "日产"
},
{
"id": 9,
"img": "https://picsum.photos/40/40?random=9",
"title": "现代"
},
{
"id": 10,
"img": "https://picsum.photos/40/40?random=10",
"title": "起亚"
}
]
```
注意,以上仍然是随机生成的车系名称和图片,如果您有真实的数据,需要替换对应的属性值。