vue开发:vue的get与post请求

一,get请求

self.$http.get(self.COMMON_URL.URL_199+'/runSystem/getRunSystemByProductId',{

params:{productId:productId}

}).then();

二,post请求

let qs=require('qs');
let params={
    'taskId':self.taskId
};
self.$http.post(self.COMMON_URL.baseApi+'8011/buildController/doVersionBuild',qs.stringify(params)).then()
   

猜你喜欢

转载自blog.csdn.net/Generon/article/details/79082955