ajax2.0 + jsonp

RFC_7540 HTTP2
1. forced HTTPS
2. higher performance - oriented stream, header compression, multiplex
3. The two-way communication - Push Server

----------------------------------—————----------------------------------

IE10 + ajax2.0
1.FormData - container the SET / GET / the append
2. file upload, upload progress monitoring
formData.set ( 'name', <the INPUT of the type = "File">);
xhr.upload.onload upload is complete
xhr. upload.onprogress upload progress
3.CORS cross-domain (new plus origin, let the server judgment is not your own domain)

ajax1.0
xhr.send ( 'string')

ajax2.0
xhr.send(formdata)
xhr.send(Blob)
xhr.send(Buffer)

-------------------------------------------------- -----------------------
Ajax long connection waste
jsonp cross-domain discarded

-------------------------------------------------- -----------------------
ajax (available cross-domain)
the WebSocket (preferred)
HTTP2 (future)

 

Guess you like

Origin www.cnblogs.com/caicai521/p/11262109.html