摘要:
1.基本使用 Fetch 是一个新的端获取资源的接口,用于替换笨重繁琐XMLHttpRequest.它有了Request 和 Response 以及Headers对象的概念,与后端语言请求资源更接近。 一个简单的GET请求 fetch('https://www.baidu.com') .then(r 阅读全文
posted @ 2020-04-17 15:52 博客sl 阅读(775) 评论(0) 推荐(0)
posted @ 2020-04-17 15:52 博客sl 阅读(775) 评论(0) 推荐(0)
posted @ 2020-04-17 13:10 博客sl 阅读(1176) 评论(0) 推荐(0)