javascript - Get parameter of GET request -
i make request:
createxhrrequest( "get", fileurl, function( err, response ) { if( err ) { alert( "error get!" ); } alert(response); });
and full response:
{ "status" : "ok", "message" : "jvberi0xljqkjdduxdgkmy
how can jvberi0xlj
?
i try response.message , response["message"]. nothing works.
just simple access this:
var json = json.parse(response); json.message
Comments
Post a Comment