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()
   

你可能感兴趣的:(vue开发)