各位大神解答一下
datalist.add(map);出錯(cuò):The method add(Map
) in the type List<Map> is not applicable for the arguments (Map) 怎么破?,object>,object>,object>datalist.add(map);出錯(cuò):The method add(Map
) in the type List<Map> is not applicable for the arguments (Map) 怎么破?,object>,object>,object>2016-03-22
舉報(bào)
2016-03-22
是不是沒有
Map map = new HashMap<String,Object>();
//存放數(shù)據(jù)key-value的形式。
map.put("name","張三");
……
dataList.add(map);