마

Vue.JS 2 Tutorial #32 - HTTP Requests

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

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

 

|
댓글을 작성하시려면 로그인이 필요합니다.

JS프레임워크

269건
+
분류 제목 글쓴이 날짜 조회
Vue 19-02-14 조회 1,123
Vue 19-02-13 조회 1,028
Vue 19-02-13 조회 1,166
Vue 19-02-13 조회 1,082
Vue 19-02-12 조회 1,054
Vue 19-02-12 조회 1,219
Vue 19-02-12 조회 1,287
Vue 19-02-11 조회 1,081
Vue 19-02-11 조회 1,128
Vue 19-02-11 조회 1,076
Vue 19-02-10 조회 1,163
Vue 19-02-10 조회 1,148
Vue 19-02-10 조회 1,339
Vue 19-02-09 조회 1,081
Vue 19-02-09 조회 1,323
Vue 19-02-09 조회 1,054
Vue 19-02-08 조회 1,230
Vue 19-02-08 조회 1,077
Vue 19-02-08 조회 1,451
Vue 19-02-07 조회 1,091
Vue 19-02-07 조회 1,220
Vue 19-02-07 조회 1,201
Vue 19-02-06 조회 1,208
Vue 19-02-06 조회 1,085
Vue 19-02-06 조회 1,188
Vue 19-02-05 조회 1,090
Vue 19-02-05 조회 1,157
Vue 19-02-05 조회 1,030
Vue 19-02-04 조회 1,357
Vue 19-02-04 조회 1,487