-2
vue-resource를 사용하여 아래의 서버 호출을 수행하는 방법을 알아 내려고하고 있습니다. 헤더를 설정하고 뷰를 사용하여 데이터를 전송하는 방법을 나는 확신하지 $ http.postvue js는 vue-resource를 사용하여 서버 호출을 작성합니다.
jQuery.ajax({
url: "http://url/",
type: "POST",
headers: {
"Content-Type": "application/json; charset=utf-8",
},
contentType: "application/json",
data: JSON.stringify({
"email": "foo",
"password": "bar
})
})
어떻게 실제로 [설명서를 읽기]에 대한 (https://github.com/pagekit/vue-resource/blob/develop/docs/http.md)? – herrbischoff