Loading

摘要: 背景 早期我们可以使用XMLHttpRequest对象来发送ajax请求,但是需要书写多行代码。 // 创建xhr对象 let xhr = new XMLHttpRequest() // 发送get请求 xhr.open('get', 'https://api.github.com/') // 监听 阅读全文
posted @ 2021-09-28 14:20 ^Mao^ 阅读(271) 评论(0) 推荐(0) 编辑