84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
除了ajax(xhr),前端还有哪些发起http的方法?
人生最曼妙的风景,竟是内心的淡定与从容!
Fetch
HTML5 fetch API
xhr 和 fetch 都可以
就目前而已, fetch 还不成熟, 像进度, 取消之类的功能都不支持, 而且低版本的浏览器(包括ie全系列, chrome42以下), 要依靠polyfill, 而polyfill 依然是用 xhr, 所以并没啥意义
Fetch
HTML5 fetch API
xhr 和 fetch 都可以
就目前而已, fetch 还不成熟, 像进度, 取消之类的功能都不支持, 而且低版本的浏览器(包括ie全系列, chrome42以下), 要依靠polyfill, 而polyfill 依然是用 xhr, 所以并没啥意义