
아까 말씀해주신대로 들여쓰기 하고 연결은 됐는데, console 확인해보는 과정에서 저는 문구가 뜨지 않고 빈화면만 나옵니다..
function show_comment(){
$.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']
console.log(name, comment)
}
}
});
}
