목록전체 글 (58)
Studyyyyy
A B C 라는 코드가 있을 때 select 태그는 let selectCode = document.querySelector("#selectCode") 로 가져올 수 있다. 이 때 옵션을 선택 후 선택한 option의 value를 가져오려면 selectedIndex를 사용하여 let selectOption = selectCode.options[selectCode.selectedIndex].value 로 선택해주면 된다. 만약 선언된 해당 변수를 함수 내에서 쓰고싶으면 함수 내에 변수를 지정해줘야한다. 함수 바깥쪽에 있으면 select가 변경되기 전에 미리 변수가 읽혀 제대로 작동하지 않음 일주일에 한번씩은 배운거 정리하는게 좋을거같은데 저번주에 인스타 클론 폭망해서 어디서부터 손을 대야할지도 감이 안잡힘 ..
처음 해본거라 들쑥날쑥하다. 나중에 하나씩 정리하기.. git init git clone https://~~~~~~.git git config —global user.name “my name” git config —global user.email “email.naver.com” git add . git commit -m “아무거나 커밋할 내용” git push origin master //여기서 자꾸 fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository ..