고요빛물결

Vue.JS 2 Tutorial #32 - HTTP Requests

· 2019-02-07 (목) 10:19:14 · 1231

HTTP Requests

 

vue-resource https://github.com/pagekit/vue-resource

 

import VueResource from 'vue-resource'

Vue.use(VueResource)

 

this.$http.post('http://jsonplaceholder.typicode.com/posts', {

    title: this.blog.title,

    body: this.blog.content,

    userId: 1

  }).then(function(data) {

    console.log(data)

  });

 

status : 201 > HTTP/1.1 201 Created   참조: https://sir.kr/so_phpframework/388

 

JSONPlaceholder 참조 https://sir.kr/so_phpframework/423

 

|
댓글을 작성하시려면 로그인이 필요합니다.
+
분류 제목 글쓴이 날짜 조회
Vue 19-02-14 조회 1,130
Vue 19-02-13 조회 1,032
Vue 19-02-13 조회 1,174
Vue 19-02-13 조회 1,094
Vue 19-02-12 조회 1,061
Vue 19-02-12 조회 1,228
Vue 19-02-12 조회 1,296
Vue 19-02-11 조회 1,091
Vue 19-02-11 조회 1,135
Vue 19-02-11 조회 1,083
Vue 19-02-10 조회 1,172
Vue 19-02-10 조회 1,156
Vue 19-02-10 조회 1,350
Vue 19-02-09 조회 1,089
Vue 19-02-09 조회 1,331
Vue 19-02-09 조회 1,061
Vue 19-02-08 조회 1,241
Vue 19-02-08 조회 1,085
Vue 19-02-08 조회 1,459
Vue 19-02-07 조회 1,096
Vue 19-02-07 조회 1,232
Vue 19-02-07 조회 1,206
Vue 19-02-06 조회 1,217
Vue 19-02-06 조회 1,092
Vue 19-02-06 조회 1,197
Vue 19-02-05 조회 1,098
Vue 19-02-05 조회 1,168
Vue 19-02-05 조회 1,037
Vue 19-02-04 조회 1,364
Vue 19-02-04 조회 1,501