본문 바로가기

배열의 고차함수 정리 예시추가 예정 //배열 forEach문 구조 //리턴없음 const numbers=[1,2,3,4] let pows = []; numbers.forEach(function(item,index){return pows[index]=item**2}) // 같은 효과 numbers.forEach((item,index)=>{pows[index]=item**2}) console.log(pows) // [1, 4, 9, 16] (method) Array.forEach(callbackfn: (value: number, index: number, array: number[]) => void, thisArg?: any): void (method) Array.map(callbackfn: (value: any, index: number, ..
소스트리 git 팀프로젝트 푸쉬 권한 문제 소스트리로 연동 하여 사용할때 github 그룹계정 권한을 인식 못하는 오류가 있을때 해결방법 윈도우 제어판 -> 자격증명관리자 자격 증명중에 git 이 포함되는 자격 전부 삭제하고 다시 시도하면 잘 됩니다
자바스크립트(JS)의 배열 사용 예시들 모음 나중에 내가 볼꺼임 const arr = [1, 2, 3, 4, 5, 6] // 3종류의 초기화방식 // const arr = Array(1, 2, 3, 4, 5, 6) // const arr = new Array(1, 2, 3, 4, 5, 6) const reference1 = arr // 배열의 주소(reference1)를 받음 const arr2 = Array.from(arr) // 배열의 값(Value)을 받음 arr2[0] = 5 // 배열을 객체 취급하므로 const일지라도 배열 요소들의 값은 바꿀수있다 // const reference1 = arr2 에러 arr[0] = 6 document.write(reference1) //[ 6, 2, 3, 4, 5, 6 ] document.write("..
JS document로 html 접근방식 기존 html내용1 기존 html내용2 기존 html내용3 기존 html내용4 document.write("기존 html내용5"); 기존 html내용6 /* item메소드 파라미터는 줄 인덱스 */ // 태그(요소)를 통한 선택 document.getElementsByTagName("li").item(0).innerHTML=" 태그로 선택"; // 아이디를 통한 선택 document.getElementById("findId").innerHTML="아이디로 선택"; // 클래스를 통한 선택 document.getElementsByClassName("findClass").item(0).innerHTML="class로 선택" // 이름을 통한 선택 document.getElementsByName("findNa..
CSS 기본적인 예시 종합 샘플 사진의 예시 html,css,이미지 파일 압축해둠 css공부 의욕도 안생기고 너무 방대해서 기본적인것만 예시로 에서 찾고 나머지는 검색해서 해결하기로 결정 (솔직히 옛날에 텍스트와 이미지로 정리한 내용이 있지만 이번에 다시 배우면서 거의 안보게됨) 그래도 다른 사람 내용을 볼때 필수적으로 필요하다고 생각되는 선택자부분은 cssElement.html파일 부분은 완벽하게 이해완료
html input태그 속성 별 예시
자바(java) 제네릭설정시 배열 표현 public static void main(String[] args) { Integer[] intArr = {1, 2, 3}; String[] strArr = {"Hello", "World"}; printArray(intArr); printArray(strArr); } private static void printArray(T[] intArr) { for (T i:intArr) { System.out.println(i); } }
VS코드 단축키 정리 General Ctrl + Shift + P (or Command + Shift + P on macOS): 문서 유형을 HTML로 선언합니다. Ctrl + Shift + N (or Command + Shift + N on macOS): 명령 팔레트를 엽니다: 새 창을 엽니다. Ctrl + W (or Command + W on macOS): 현재 창을 닫습니다. Ctrl + S (or Command + S on macOS): 현재 파일을 저장합니다. Ctrl + Shift + S (or Command + Shift + S on macOS): 열려 있는 모든 파일을 저장합니다. Ctrl + P (or Command + P on macOS): 빠른 파일 탐색. Ctrl + Shift + F (or Comman..