본문 바로가기

JavaScript

(61)
자바스크립트 정리하며 배우기[01] - Hello JavaScript! 안녕하세요. Tay 입니다. 자바스크립트는 세계에서 가장 오해받는 언어 라는 말이 있습니다. 저 또한 자바스크립트를 매우 쉬운 언어라고 생각했고 중요하게 생각하지 않았습니다. 말 그대로 대충 배웠습니다. 하지만 자바스크립트는 모든 웹 브라우저 에서 작동되며 어쩌면 세상에서 가장 중요한 언어 일지도 모릅니다. 앞으로 자바스크립트를 MDN 기반으로 기초부터 개념까지를 정리 할 계획입니다. 또한, 이 글을 통해 읽어주시는 분들에게 도움이 되길 바랍니다. 1. 자바스크립트 웹 브라우저에서 동작하는 스크립트 언어 이며, DOC 과 함께 웹을 구성하는 언어이다. 2. 자바스크립트 핵심 개념 1) 객체 자바스크립트는 프로토타입기반 객체지향 언어이다. 그렇기때문에 자바스크립트의 거의 모든 것이 객체다. ※ 객체 개념 ..
[React 에러] This is likely because you're using an outdated version of create-react-app. 리액트를 설치하려고 할때 openssl config failed: error:02001003:system library:fopen:No such process A template was not provided. This is likely because you're using an outdated version of create-react-app. Please note that global installs of create-react-app are no longer supported. 위 와 같은 에러가 발생 할 경우, 리액트 create-react-app 의 버전이 오래 됐기 때문이다. 이러한 경우 npx create-react-app my-app 로 업데이트를 받거나 npm uninstall -g cr..
[Angular] 개발 서버 실행하기 ng serve 명령어로 실행 Angular CLI 개발 서버가 실행 되고 자동으로 수정사항 빌드한다.
[Angular 에러] formGroup expects a FormGroup instance. Please pass one in. 원인 및 해결 해당 에러가 발생할 경우 1. html 에서 form group 을 form 으로 선언 하지 않은 경우 2. ts 에서 group 을 form 으로 선언 하지 않은 경우 원인 : registerForm: FormGroup; registerPayload: RegisterPayload; constructor( private formBuilder: FormBuilder, private authService: AuthService ) { this.formBuilder.group({ username: "", email: "", password: "", confirmPassword: "" }); 내 코드의 경우 form 을 선언했지만, constructor 의 group 을 form 으로 넘기지 않았다. 해결 : ..
[Angular 에러] Error: StaticInjectorError(AppModule)[HttpClient] 원인 및 해결 해당 에러는 appModule 에 HttpClientModule 을 선언하지 않아서 그런 것 입니다. app.module.ts 에 import { HttpClientModule } from '@angular/common/http'; import 하시고 imports: 에 HttpClientModule 을 추가하세요.
[React-Native] ERR! code ELIFECYCLE , errno 1 에러 error Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Unterminated character class. Run CLI with --verbose flag for more details. SyntaxError: Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|...
Javascript async & await javasript 에서 async 를 통해 비동기 처리가 완료 될 때까지 await 을 통해 기다릴 수 있다. await 은 async 를 선언해야지 사용 가능 https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Statements/async_function
javascript a 테그로 url 파일 다운로드 하기 a - href 로 url 세팅 후 a - download 로 파일 이름 지정 그리고 link(a).click 하면 다운 됨 예시 function handleSaveClick() { const image = canvas.toDataURL(); const link = document.createElement("a"); link.href = image; link.download = "PaintJS"; link.click(); }