2021.04.16

김승우·2021년 4월 16일
0

TIL

목록 보기
48/68

🎉 2021.04.16

1. Ajax Content-type 지정하기

: https://thiago6.tistory.com/11

2. Ajax content-type: "application/json"일 때 data 전송하기

{
  data: JSON.stringify(parameter),
}

3. Array of Object 복사하기

: https://stackoverflow.com/questions/597588/how-do-you-clone-an-array-of-objects-in-javascript

var clonedArray = JSON.parse(JSON.stringify(nodesArray))

4. setTimeout & clearTimeout

  1. clearTimeout: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearTimeout

5. 디바운스

function _debounce(function, delay) {
  var timer = null;

  return function() {

  }
}

6. let & const

: 블록 단위 스코프를 가진다.

profile
사람들에게 좋은 경험을 선사하고 싶은 주니어 프론트엔드 개발자

0개의 댓글