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 | 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 확대
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