whatwg/xhr

features request:add SynXMLHttpRequest for Avoid Callback Hell Programming

annopnod opened this issue · 1 comments

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);

Use fetch() and async/await.