💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` var jsonArr = [ {"id": "1", "name": "A1"}, {"id": "2", "name": "A2"}, {"id": "3", "name": "A3"}, {"id": "4", "name": "A4"}, {"id": "5", "name": "A5"} ]; ``` ![mark](http://qiniu.newthink.cc/blog/20171210-105828562.png) 如图所示,键值是 `0,1,2,3,4`,而我想将 `id` 为 `1,2,3,4,5` 作为键值。该怎么操作呢? ![mark](http://qiniu.newthink.cc/blog/20171212-152715054.png) ![mark](http://qiniu.newthink.cc/blog/20171212-152730964.png)