
안녕하세요
2주차 마지막에서 아래와 같이 fetch에 대해 교육을 받았습니다만,
fetch앞에
$(document).ready 이것에 대한 설명이 없었습니다 ^^
$(document).ready(function () {
이것이 무엇을 뜻하는건지요?
천천히 답변 주셔도 됩니다
감사합니다
<script>
$(document).ready(function () {
fetch("http://spartacodingclub.shop/sparta_api/weather/seoul").then(res => res.json()).then(data => {
let ondo = data['temp']
$('#temp').text(ondo)
})
})
</script>
