이벤트핸들러1 [clone project]Danstagram - js (Main page) 첫 클론 프로젝트 Danstagram★ [메인 페이지 - 필수 구현사항] 댓글 작성 후 '엔터키'를 누르거나, '게시'를 클릭하면 댓글 추가 ✔️ 세 번째 버전 (Refactoring 후) - 소요시간 약 2.5h "use strict"; const postComment = document.getElementById('post'); const inputComment = document.getElementById('newComment'); const btnComment = document.getElementById('btnPost'); // 새 코멘트 값 체크 function checkComment(){ if(inputComment.value.length > 0){ addComment(inputCommen.. 2021. 9. 13. 이전 1 다음