data.list[index].원하는키 = "원하는키값"
~.ajax {
// 생략
},function(data) {
$.each(data.list, function(index){//data.list 받아서 가공 해서 템플릿으로 넘겨주기
if(this.cd == 'type1') {
data.list[index].classNm = 'status01';
} else if(this.cd == 'type1') {
data.list[index].classNm = 'status02';
} else if(this.cd == 'type2') {
data.list[index].classNm = 'status03';
} else if(this.cd == 'type3') {
data.list[index].classNm = 'status05';
} else if(this.cd == 'type4') {
data.list[index].classNm = 'status01';
} else if(this.cd == 'type5') {
data.list[index].classNm = 'status04';
}
});
//생략
}
템플릿에 바로 적용 ! 끝 !