본문 바로가기

전체 글

(64)
javascript 반복문에서 setTimeout 1초 간격 호출하기 반복문에 1초 간격으로 호출 하고 싶을때는 let delay = 0; for(let i=0; i { //실행할 함수명 }, delay); } 위와 같이 진행 해야 1초 간격으로 호출이 될수 있다 for(let i=0; i { //실행할 함수명 }, 1000); } 이렇게 하면 1초 뒤 count 만큼의 함수가 한번에 호출 됨 더 좋은 방법이 있다면 댓글로 남겨 주시면 감사하겠습니다.
전화번호 "-" 자동 입력 정규식 hp.replace(/[^0-9]/g, "").replace(/(^02|^0505|^1[0-9]{3}|^0[0-9]{2})([0-9]+)?([0-9]{4})$/, "$1-$2-$3" );
'v-slot' directive doesn't support any modifier. 작성내용 수정 수정전 : v-slot:header.settlement_amount 수정후 : v-slot:[`header.settlement_amount`] 이전에 잘못된 정보를 보신분이 계시다면 사과 말씀드립니다.
mac 터미널에서 code . 로 vscode 실행 1. Launch VS Code. 2. Open the Command Palette (Ctrl+Shift+P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command. 3. Restart the terminal for the new $PATH value to take effect. You'll be able to type 'code .' in any folder to start editing files in that folder.
우분투 vscode 한글 입력 안될때 1) 기존 설치된 vscode 삭제 : sudo snap remove code 2) .deb 형식의 vscode 직접 다운 : https://code.visualstudio.com/download Download Visual Studio Code - Mac, Linux, Windows Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications. cod..
자바스크립트 GET 파라메터 받기 자바스크립트로 GET 파라메터를 쉽게 받기 위해 검색하다 보니 알게된 함수 let params = new URLSearchParams(window.location.search); let param_type = params .get("type"); 익스프로러에서는 지원이 안된다고 하는데 익스프로러에서도 console.log가 잘 찍히는걸 확인
타입스크립트 프로젝트 만들기 VSCode의 터미널에서 1) 디렉토리 생성 2) 생성한 디렉토리에서 npm init --y 입력 ( package.json 파일 생성 ) 3) npm i -D typescript ts-node 입력 4) npm i -D @types/node 입력 5) npm i 입력 6) tsc --init ( tsconfig.json 파일 생성 ) 7) tsconfig.json 파일 설정 { "compilerOptions": { "module": "commonjs", "esModuleInterop": true, "target": "es5", "moduleResolution": "node", "outDir": "dist", "baseUrl": ".", "sourceMap": true, "downlevelIteratio..
타입스크립트 개발환경 만들기(타입스크립트 컴파일러 설치 및 실행) 1) C드라이브-> study 폴더 생성 2) study 폴더에서 오른쪽 마우스 클릭 3) VSCode로 열기 4) 보기 -> 터미널 클릭 5) 터미널에서 npm i -g typescript 입력 6) 터미널에서 tsc -v 입력 7) scoop install touch 입력 8) VSCode 왼쪽상단을 보면 hello.ts 파일이 생성된것을 확인 9) console.log('hello world!'); 입력 후 저장 ( 컨트롤+S ) 10) 터미널에서 tsc hello.ts 입력 11) VSCode 왼쪽상단을 보면 hello.js 파일이 생성된것을 확인 12) node hello.js 입력시 13) Hello world! 노출 확인