fetch연습21 Fetch연습2 fetch연습2 따릉이 OpenAPI : http://spartacodingclub.shop/sparta_api/seoulbike 필요 데이터 확인 : stationName: 정류소이름, parkingBikeTotCnt : 주차 현황, rackTotCnt : 총 주차공간 // 페이지 로딩 시 중괄호 안의 내용 즉시 실행 $(document).ready(function(){ }) step1. 따릉이 OpenAPI를 fetch한다. fetch("http://spartacodingclub.shop/sparta_api/seoulbike") .then(res => res.json()) .then(data => {}) step2. 리스트([])인 부분을 추려 변수에 저장 fetch("http://spartacodi.. 2023. 2. 20. 이전 1 다음