
자꾸 콘솔창에 undefined undefined undefined 이렇게 떠요
function q1() {
$.ajax({
type:"GET",
url:"http://spartacodingclub.shop/sparta_api/seoulbike",
data: {},
success: function (response) {
let rows = response['getStationList']['row']
for (let i=0;i<rows.length;i++){
let name = rows[i]['"stationName']
let rack = rows[i]['"rackTotCnt']
let bike = rows[i]['"parkingBikeTotCnt']
console.log(name,rack,bike)
}
}
})
}
