Solve the problem of no request when sending non-json data for asynchronous requests of IE8 and IE9

//Sent non-json data 
var datastr='qazwsxedc'; if ('XDomainRequest' in window && window.XDomainRequest !== null) { var xdr = new XDomainRequest(); xdr.open('post',_this.loggerUrl); xdr.send(data); xdr.onload = function() { var data=JSON.parse(xdr.responseText); }; } else { jQuery.ajax({ type:'POST', async:true, timeout:30000, url :_this.url, dataType:'json', data:datastr,    crosDomain:true, success:function(data) {     if(data.rsp.code==0){ result={flag:0,message:'Success!'};   }else{ result={flag:1,message:'Failed!'};     } }, error:function(XMLHttpRequest, textStatus, errorThrown){    result={flag:-1,message:'Network connection error!'}; } }); }

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324929725&siteId=291194637