var nearInfo=[{"retmsg": "success",”id“:100,"name": "中山公行枝首简园"},{"retmsg": "success",”id“:100,"name": "中山公园"}];// json转对象var result = $.parseJSON(nearInfo);for(var i=0;i $('#li').html(result[i].name);}
这里只填了个name , 你看懂了,其他就好说了