当前位置:首页 > 操作系统 > Ios

axios 传对象(JavaBean)到后台

 

                 //user对象
           let user = JSON.stringify({ userAccountNumber: own.userName, userPassword: own.userPassword }); //后台数据库验证 axios.post(url, user,{ headers: { "Content-Type": "application/json;charset=utf-8" //头部信息 } }) .then(function(response) { }) .catch(function(error) { console.log(error); });

 


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!