커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
temp_html = `` 빈칸에 대해서
undefined주차
북마크
배*우
댓글
1
추천
0
조회수
5
조회수
5
답변 완료

<script> function q1() { // 여기에 코드를 입력하세요 $('#names-q1').empty(); $.ajax({ type: "GET", url: "http://spartacodingclub.shop/sparta_api/seoulair", data: {}, success: function (response) { let rows = response["RealtimeCityAir"]["row"]; for (let i = 0; i < rows.length; i++) { let gu_name = rows[i]['MSRSTE_NM']; let gu_mise = rows[i]['IDEX_MVL']; let temp_html = '' if (gu_mise > 70) { temp_html = `<li class="bad">${gu_name} : ${gu_mise}</li>` } else { temp_html = `<li>${gu_name} : ${gu_mise}</li>` } $('#names-q1').append(temp_html); } } }) } </script>


에서 temp_html = `` 이것이 왜 빈칸으로 남겨두는 건가요? append(tem_html)할때 빈칸인데 어떻게 인식이 되나요?

취소
 공유
취소
댓글 0
댓글 알림
나의얼굴