3
JS 함수를 따라했습니다.자바 스크립트 함수 푸시 문제
responseData:function(resp){
this.jsondata = eval('(' + resp + ')');
this.propList = [];
for (var i = 0;i<this.jsondata.length;i++) {
for (obj in this.jsondata[i]) {
alert(obj); //shows the property name of obj
this.propList.push({
obj : this.jsondata[i][obj] //insert only simple obj string
});
}
}
return this.propList;
}
나는 나의 propList에서 속성 이름과 값을 삽입 할, 대신이 기능은 간단한 삽입 속성 이름을 삽입 문자열로 'obj에'. 내가 뭘 잘못하고있어?
인사 스테판
정상적으로 작동 함 ok ty – Mark