결과 요소에 액세스 할 수없는 이유를 알 수 없습니다.
반환되는 것 :
[{"customSurfaceMaster": {"CSMasterID":1,"CSName":"Q17","QuestionId":12,"OpType":"22","OpFlag":null,"ChartType":"Bar"},"UserCSID":1,"UserId":2,"CSMasterID":1,"PeriodType":null,"PeriodStartValue":null,"PeriodEndValue":null,"ImpLevel":1,"DisplayOrder":1,"Visible":true}]
여기에서 액세스 시도 :
var Tile = BindTiles(result.customSurfaceMaster.chartType, result.customSurfaceMaster.CSname, result.ImpLevel);
오류:
result.customSurfaceMaster is undefined
이 시도:
var Tile = BindTiles(result.customSurfaceMaster[0].chartType, result.customSurfaceMaster[0].CSname, result.ImpLevel);
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다