커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
ajax 데이터 css 적용 여부 문의
undefined주차
북마크
하*화
댓글
1
추천
0
조회수
6
조회수
6
답변 완료


아래에서

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);

          }

        }

      });

    }









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