
스크립트 부분을
이렇게 적어도 잘 돌아가는데 모범답안이랑은 달라서 질문드립니다
이렇게 해도 되나요??
<script>
$(document).ready(function () {
$.ajax({
type: "GET",
url: "http://spartacodingclub.shop/sparta_api/weather/seoul",
data: {},
success: function(response){
let temp = response['temp']
$("#temp").append(temp)
}
})
});
</script>
