
아래에서
show_order() 라는 함수를 실행할때 ajax로 데이터 받고 그다음에 html로 넣는데 css도 가능한가요 ??
function show_order() {
$.ajax({
type: 'GET',
url: '/grboy',
data: {},
success: function (response) {
let rows = response['usercomment'];
for (let i = 0; i < rows.length; i++) {
let name = rows[i]['name_list']
let comment = rows[i]['comment_list']
console.log(name, comment);
let temp_html = ` <div class="card-body">
<blockquote class="blockquote mb-0">
<p>${name}</p>
<footer class="blockquote-footer">${comment}</footer>
</blockquote>
</div>`
$('#mycomment').append(temp_html);
}
}
});
}
