본문 바로가기

검색하기
프로필사진

  • 분류 전체보기 (69)
    • 개발 관련 유용한 아이템들 (4)
    • 2021 프론트 엔드 로드맵 따라가기 (65)
      • 인터넷 (2)
      • CSS (7)
      • Sass (0)
      • JS (56)
      • Git (0)
      • Package Manager (0)
      • Linters & Fotmatters (0)
    • 이건 어떻게 ? (0)
    • NoSQL (0)
    • Diary (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • flex-grow
  • css grid
  • flex-basis
  • shit-christmas
  • 정규표현식
  • ajax
  • select by attribute
  • css
  • 디자인패턴
  • Express
  • Node.js
  • flex-shrink
  • Sass
  • express-handlebars
  • Engoo
  • node
  • flexbox
  • close together
  • 무료 백엔드 배포
  • improve-iq-by-up-to-10%!
  • css variables
  • module wrapper function
  • Prototype
  • JS
  • Object.create
  • regExp
  • css 오버레이
  • es6
  • just-one-small-sip
  • img 확대
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록post (1)

AJAX POST request

Content-Type 헤더를 지정해주는 것과 보낼 데이터를 JSON 문자열로 변경하여 보내야 하는 점에 주의하자. // Make an Http POST Request EasyHttp.prototype.post = function (url, data, callback) { this.http.open("POST", url, true); this.http.setRequestHeader("Content-type", "application/json"); let self = this; this.http.onload = function () { callback(null, self.http.responseText); } this.http.send(JSON.stringify(data)); };

2021 프론트 엔드 로드맵 따라가기/JS 2021. 6. 7. 22:34
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바