84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
除了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, 所以并没啥意义