2022-8-31 TIL

신중민·2022년 8월 31일

오늘 드디어 미니 프로젝트 발표를 했다. 다른 팀분들이 너무 준비를 잘하셔서 초반에 기가 죽었지만 우리팀도 많이 노력하고 열심히 해서 미니 프로젝트 발표를 무사히 마무리 할 수 있었다. 그래도 내가 팀에 많은 도움이 되지 못한거 같아 미안한 마음이 든다. 앞으로 더 열심히해서 팀에 도움이 되는 개발자가 되도록 노력해야겠다.

미니 프로젝트 마음에 든 부분

function q() {
    let comment = $('#input-q').val()

    $.ajax({
        type: 'POST',
        url: '/profile',
        data: { comment_give: comment },
        success: function (response) {
            alert(response['msg'])
            window.location.reload()
        }
    });
}
<div class="mypost" id="post-box">
    <div class="form-floating mb-3">
        <div class="visit">
            <div class="bang">
                <p>응원하기</p>
            </div>
        </div>
        <div class="question-box">
            <input class="hi" id="input-q" type="text" placeholder="방명록 작성하기" style="width:400px"/>

            <button onclick="q()" type="button" class="btn">작성 완료</button>
            <button onclick="close_box()" type="button" class="btn">닫기</button>


            <table border="1" class = "last" style="width:400px">
                <tbody id="order-box">

                </tbody>
            </table>

        </div>
    </div>
</div>

마음에 드는 이유 : 프론트엔드에서 ajax 댓글 등록 기능을 구현 할 수 있어서 마음에 들었습니다.

0개의 댓글