axios 读取 api
文档地址:http://www.axios-js.com/
let params2= {
Mark: "UsertBll.Login",
Content: {
name: "admin",
password: "123456"
}
};
this.$axios.post('http://1.1.1.1:11/api/Home'
,'{Mark: "UserBll.Login",Content: {name: "admin",password: "123456"}}'
,{headers: {'Content-Type': 'application/json'}}
).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.log(error);
});