axios({
url:"http://localhost:8080/blogs/Login",
params:{
"userName":this.userName,
"userPwd":this.userPwd,
},
method:'post',//method默認是get請求以及get請求
}).then(function(res){
// axios會對我們請求來的結果進行再一次的封裝( 讓安全性提高 )
//res是返回的值如果後端返回的json數據在這裏會自動轉換
}).catch(err=>{
//異常捕獲
console.log(err);
})