vue $http get,post,put,delete方法使用

get方法,此方法向服務器獲取咱們須要的數據,若是須要傳入參數,則須要paramshtml click(){ this.$http.post('/xxx',{ params:{'page':1,'size':10服務器 }app }).then((response) =>{ console.log(response) }) } delete方法同上。post put方法 .PUT的方法就是其字面
相關文章
相關標籤/搜索