var json = [ { data: [ { role: "管理员",state: 1 }, //1为enable { role: "维护组",state: 1 }, { role: "管理员",state: 1 } ], }];变成=》var json = [ { data: [ { "管理员":2,"维护组":1,"enable":3,"disable":0} ] }];应该是这样的 var json = [ { data: [ { "group":"管理员","enable":2,"disable":0}, { "group":"维护组","enable":1,"disable":0} ] } ];
添加回答
举报
0/150
提交
取消