请帮我模拟一个fastmock的返回数组,数组长度是10,数组里面是对象,对象的第一个属性是id,第二个属性是picsum模拟的车标图片,图片大小事40×40,第三个属性是车标对应的车系名称
时间: 2024-02-26 14:55:37 浏览: 71
js对象数组按属性快速排序
好的,以下是一个模拟的返回数组:
```
[
{
"id": 1,
"logo": "https://picsum.photos/40/40?random=1",
"name": "大众"
},
{
"id": 2,
"logo": "https://picsum.photos/40/40?random=2",
"name": "奥迪"
},
{
"id": 3,
"logo": "https://picsum.photos/40/40?random=3",
"name": "宝马"
},
{
"id": 4,
"logo": "https://picsum.photos/40/40?random=4",
"name": "奔驰"
},
{
"id": 5,
"logo": "https://picsum.photos/40/40?random=5",
"name": "本田"
},
{
"id": 6,
"logo": "https://picsum.photos/40/40?random=6",
"name": "丰田"
},
{
"id": 7,
"logo": "https://picsum.photos/40/40?random=7",
"name": "福特"
},
{
"id": 8,
"logo": "https://picsum.photos/40/40?random=8",
"name": "日产"
},
{
"id": 9,
"logo": "https://picsum.photos/40/40?random=9",
"name": "现代"
},
{
"id": 10,
"logo": "https://picsum.photos/40/40?random=10",
"name": "起亚"
}
]
```
注意,以上数组里的车系名称是随机生成的,并不是真实的车系名称。如果您有真实的车系名称数据,可以替换掉相应的名称。
阅读全文