javascript - read response of http request -
this may looks silly don't understand why happening
sinple http request
http.get(url, {}, function(e,r){ console.log(e, r); if(e){ toastr.error("invalid withdraw address, please check address , try again"); return; }else{ console.log(r, r.statuscode,r.data.isvalid, r.isvalid); var d = r.data; console.log(d, d.isvalid); if( r.statuscode === 200 && r.data.isvalid ){ }else{ toastr.error("invalid withdraw address, please check address , try again"); return; } $('#withdrawmodal').modal('hide'); } }); i'm not able read response

i want read "isverify" value in response, tried possibilities i'm getting undefined
the response contains isvalid, logging isvalid. 2 names different.
Comments
Post a Comment