let cs = document.querySelector('meta[name="csrf-token"]');
const http = axios.create({
headers: {
'X-CSRF-TOKEN': cs.getAttribute('content')}
});
//找到登录表单
const loginFrom = document.querySelector('.login-form');
let name =
laravel把传统的ajax替换成axios使用
最新推荐文章于 2022-09-10 19:50:50 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)