http2 RFC_7540
1.強制https
2.性能更高--面向流、頭壓縮、多路複用
3.雙向通訊--服務器推送web
----------------------------------—————----------------------------------ajax
ajax2.0 IE10+
1.FormData --容器 set/get/append
2.文件上傳、上傳進度監控
formData.set('名字', <input type="file">);
xhr.upload.onload 上傳完成
xhr.upload.onprogress 上傳進度
3.CORS跨域(新加origin,讓服務器判斷是否是本身的域)json
ajax1.0
xhr.send('字符串')跨域
ajax2.0
xhr.send(formdata)
xhr.send(Blob)
xhr.send(Buffer)服務器
----------------------------------—————----------------------------------
ajax長鏈接 廢棄
jsonp跨域 廢棄websocket
--------------------------------------—----------------------------------
ajax(可跨域)
websocket(首選)
http2(將來)app