📜  如何将 json 列表转换为数组列表 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:54.060000             🧑  作者: Mango

代码示例2
dataArray = [{"Value":10,"ValuePourcent":2},{"Value":20,"ValuePourcent":3},{"Value":51,"ValuePourcent":1}]

newFormat = dataArray.map(function(e){
                  return [e["Value"], e["ValuePourcent"]]
                  });