How to get “Data” field from xhr.responseText?

后端 未结 7 1029
别跟我提以往
别跟我提以往 2020-12-09 14:40

I have XMLHttpRequest() function given below

var searchFriendRequests = function (userid) {
    var xhr = new XMLHttpRequest();
    xhr.open(\'G         


        
相关标签:
7条回答
  • 2020-12-09 15:34
    var jsonResponse = JSON.parse(xhr.responseText);
    console.log(jsonResponse);
    
    0 讨论(0)
提交回复
热议问题