后端:
Map<String, DateTimeScope> map = new HashMap<>();
Iterator<Map.Entry<String, DateTimeScope>> it = map.entrySet().iterator();
while (it.hasNext()) {
Map.Entry<String, DateTimeScope> entry = it.next();
}
Map<String, DateTimeScope> map = new HashMap<>();
for (Map.Entry<String, DateTimeScope> entry : map.entrySet()) {
}
前端:
var arrName=[];
var arrValue=[];
for(var p in data){
if(typeof(data[p])=="function"){
data[p]();
}else{
arrName.push(p);
arrValue.push(data[p]);
}
}