|
这是根据id获取到的一组数据格式:
jQuery111105443123239092529_1488859338972({
"data": {
"proposal": {
"id": 38,
"type": 0,
"title": "UI",
"content": "UI"
},
"urlList": [
{
"id": 209,
"name": "83a04d7e-b157-42f6-b31d-2dc6a5c26fbc.jpg",
"type": 1,
"url": "http://192.168.6.87:8082/App/photo/proposal/image/115/83a04d7e-b157-42f6-b31d-2dc6a5c26fbc.jpg"
},
{
"id": 210,
"name": "overview.mp4",
"type": 2,
"url": "http://192.168.6.87:8082/App/photo/proposal/vedio/115/overview.mp4"
},
{
"id": 211,
"name": ".device.txt",
"type": 3,
"url": "http://192.168.6.87:8082/App/photo/proposal/other/115/.device.txt"
}
]
},
"success": "1",
"status": "success"
})
请问如何在js中获取到urlList中每一条数据的type,然后只显示type=1的数据的name?求指教。
|
|