채택완료
Uncaught TypeError: Cannot read property 'route' of undefined 오류
"<p class='route_p'>" + your_offer_total[i].route + "</p>"+
Uncaught TypeError: Cannot read property 'route' of undefined
화면에서는 잘불러와서 잘 뿌려주는데;;
이후 스크립트가 다먹통되네요
.
이건 콘솔에러구요..
your_selloffer_list.html:218 Uncaught TypeError: Cannot read property 'route' of undefined
at HTMLDocument.<anonymous>
at i (jquery-1.12.4.min.js:2)
at Object.fireWith [as resolveWith] (jquery-1.12.4.min.js:2)
at Function.ready (jquery-1.12.4.min.js:2)
at HTMLDocument.K (jquery-1.12.4.min.js:2)
(anonymous) @ your_selloffer_list.html:218
i @ jquery-1.12.4.min.js:2
fireWith @ jquery-1.12.4.min.js:2
ready @ jquery-1.12.4.min.js:2
K @ jquery-1.12.4.min.js:2
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
답변을 작성하려면 로그인이 필요합니다.
{
"price" : 950
},
{
"price" : 900
},
{
"price" : 850
},
{
"price" : 800
}
];
이렇게 데이터를 만들고
for(var i = 0; i <= pricewop.length ; i++){
var search_view =
"<li>"+ pricewop[i].price +"</li>";
$('.message_board3 .list_pride ul').append(search_view);
}
에 사용하면 화면에서는 숫자가 나오는데.
콘솔창에서는 Uncaught TypeError: Cannot read property 'price' of undefined 라는 에러가 나오고
아래 스크립트 부터는 읽지를 못합니다.
어디서 틀린건지 알수있을까요?
콘솔창 에러위치는 "<li>"+ pricewop[i].price +"</li>"; 입니다