我有一个Java列表:
List<Map.Entry<String, String>> list = new ArrayList<Map.Entry<String, String>>(map.entrySet());
我的问题是如何将上面的java列表转换为Javascript数组,如下所示:
var prevYear = [["2011-08-01",398], ["2011-08-02",255.25], ["2011-08-03",263.9], ["2011-08-04",154.24]];
谢谢!