我得到的答复为:
0: {id: "190", name: "Elurupadu"}
1: {id: "1230", name: "Sendhwa"}
2: {id: "1262", name: "Multai"}
3: {id: "1480", name: "Kherwara"}
4: {id: "2225", name: "Mandi"}
5: {id: "519", name: "Thamarassery"}
6: {id: "208", name: "Ayyampettai"}
7: {id: "5519", name: "Udaipur"}
8: {id: "26977", name: "Siddapura(Udupi)"}
9: {id: "1151", name: "Murthal"}
10: {id: "327", name: "Pillayarpatti"}
11: {id: "2022", name: "Siddapura"}
12: {id: "738", name: "Therthally"}
13: {id: "1112", name: "Chandigarh"}
14: {id: "2358", name: "Kadodra"}
...............
我想将其转换为:
[ {id: "960",name: "Elurupadu"},
{id: "1230",name: "Senhwa"},
{id: "1262",name: "Multai"},
...
];
任何人都可以帮我整理,即时通讯使用javascript。
答案 0 :(得分:0)
{{1}}