JS

·JS
예시 코드 const myObject = { name: "Alice", greet: function() { console.log("Hello, " + this.name + "!"); }};const externalGreet = myObject.greet;externalGreet(); // "Hello, undefined!" - this가 전역 객체를 참조하게 됨const boundGreet = myObject.greet.bind(myObject);boundGreet(); // "Hello, Alice!" - this가 myObject로 명시적으로 바인딩됨 signIn.jsconst signInApp = { userList: JSON.parse(localStorage.ge..
·JS
권한이 있는 경우 (본인 작성 글)권한이 없는 경우 (다른 사용자 작성 글, 비로그인 시) 게시판 로그인 회원가입 상세보기 화면 by JS 제목 ..
·JS
디자인 시안 확인board-write.html: 비 로그인 시 로그인 페이지로 리다이렉션 처리 됨: 파일 미리 보기 기능 구현  board-write.html 게시판 로그인 회원가입 글쓰기 by JS 제목 ..
·JS
디자인 시안 확인board-list.html게시글이 없는 경우 (비로그인시), 게시글이 는 경우(로그인시)header.js// DOMContentLoaded 이벤트를 사용해 보자.document.addEventListener("DOMContentLoaded", function () { // DOM 요소를 가져오기 const boardMenu = document.getElementById("board"); const signInMenu = document.getElementById("signIn"); const signUpMenu = document.getElementById("signUp"); const authLinks = document.getElementById("authLinks"); ..
신슨형의 정상화
'JS' 카테고리의 글 목록