摘要: 前端发送 ajax 请求的方式 1. xhr new XMLHttpRequest xhr.open() xhr.send() 基本不用 2. jquery(封装的 xhr) $get $post 3. axios(封装的 xhr) 和 jquery 比较 promise 风格的,支持请求拦截器和响 阅读全文
posted @ 2023-08-13 15:37 雪落无痕1 阅读(18) 评论(0) 推荐(0)