whatwg / xhr

XMLHttpRequest Standard
https://xhr.spec.whatwg.org/
Other
314 stars 129 forks source link

features request:add SynXMLHttpRequest for Avoid Callback Hell Programming #323

Closed annopnod closed 3 years ago

annopnod commented 3 years ago

Avoid Callback Hell Programming from XMLHttpRequest

Add New Function

SynXMLHttpRequest

var xml=new SynXMLHttpRequest() ; xml.open('GET', 'test.php'); xml.send(FormData); var rs=JSON.parse(xml.result); console.log(rs);

annevk commented 3 years ago

Use fetch() and async/await.