Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- flexbox
- regExp
- flex-grow
- Prototype
- flex-shrink
- node
- improve-iq-by-up-to-10%!
- select by attribute
- ajax
- Sass
- module wrapper function
- Engoo
- express-handlebars
- css 오버레이
- JS
- css variables
- close together
- shit-christmas
- flex-basis
- 무료 백엔드 배포
- css
- just-one-small-sip
- Node.js
- 디자인패턴
- es6
- img 확대
- Object.create
- css grid
- Express
- 정규표현식
Archives
- Today
- Total
목록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