vue向后端传递数据之GET和POST

 

 

使用GET方法传递参数

      这种url拼接是微信小程序的拼接方式 :url = url  +'?year='+this.cur_year + '&month=' + this.cur_month

 

 

 

 

 

this.$http.post(url,form,options).then(res=>{

 

posted @ 2021-03-08 18:27  星空之主  阅读(1552)  评论(0编辑  收藏  举报