개발 중인 웹 브라우저에 서울의 기온을 실시간으로 적용시키자!
<script>
$(document).ready(function () {
fetch("http://spartacodingclub.shop/sparta_api/weather/seoul").then(res => res.json()).then(data => {
let number=data['temp']
$('#temp').empty()
let temp_html = `<span id="temp">${number}</span>`
$('#temp').append(temp_html)
})
})
</script>
'SQL & 웹 개발 숙제' 카테고리의 다른 글
웹개발 3주차 숙제코딩 (0) | 2023.04.26 |
---|---|
SQL 3주차 숙제 코딩 (0) | 2023.04.25 |
SQL 2주차 숙제 코딩 (0) | 2023.04.20 |
웹개발 1주차 숙제코딩 (0) | 2023.04.19 |
SQL 1주차 숙제 코딩 (0) | 2023.04.18 |