만드는건 잘 알려주셔서 완성하였습니다.
감사합니다.
저 부분 수정 질문을 드리고 싶어요..파이선에서 작성한거면 고칠수 있을거 같은데 이부분은 어찌 수정or삭제가 가능한가요??
보고 계신 화면
전체를 캡처해 주시면, 튜터님들이 빠르게 상황을 이해할 수 있어요.
작성한 코드 및 에러 메세지
function show_comment(){ $('#comment-list').empty() $.ajax({ type: "GET", url: "/homework", data: {}, success: function (response) { let rows = response['comments'] for (let i = 0; i < rows.length; i++) { let name = rows[i]['name'] let comment = rows[i]['comment'] let temp_html = `<div class="card"> <div class="card-body"> <blockquote class="blockquote mb-0"> <p>${comment}</p> <footer class="blockquote-footer">${name}</footer> </blockquote> </div> </div>` $('#comment-list').append(temp_html) } } }); }