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

后端 未结 7 1091
别跟我提以往
别跟我提以往 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:32

    To simply get the email, or any other field, from the Data object, use the following:

    data.Data[0].email
    

    WORKING EXAMPLE

提交回复
热议问题