会员登录在我们的好多项目中都有用到,比如在后台管理系统,它的第一步就需要你进行登录,还有在我们常见的京东.淘宝.网易云音乐等一系列的软件上面都需要进行登录. 下面我们直接上代码 fetch(url,{ method: 'post', //使用post方法 mode: 'cors', //跨域 headers:{ 'Content-Type': 'application/x-www-form-urlencoded' }, //请求头 body:'cellphone='+this.state.use…