axios發(fā)送post請求帶參數 axios發(fā)送post請求?
axios發(fā)送post請求?//Post data讓postData={用戶名:“user1”,密碼:“123”}axios.post公司(“/login”,postData)。然后(response
axios發(fā)送post請求?
//Post data讓postData={用戶名:“user1”,密碼:“123”}axios.post公司(“/login”,postData)。然后(response=>{//post成功,響應.數據返回的數據控制臺.log( 響應.數據)}). Catch(error=>{//請求失敗控制臺.log(錯誤)})