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的方法就是其字面
相关文章
相关标签/搜索