这可能是一个初学者的简单问题,所以感谢您的理解。
使用php脚本,我设法从我的数据库中获取一些信息。这是检查保存数据的变量的信息:
XMLHttpRequest {statusText: "OK", status: 200, response: "[{"id":"3","login":"ada",...."phone":"123456789"}]", responseType: "", responseXML: null…}
onabort: null
onerror: null
onload: null
onloadend: null
onloadstart: null
onprogress: null
onreadystatechange: function (){
ontimeout: null
readyState: 4
response: "[{"id":"3","login":"ada","created":"2014-06-20 07:00:20","email":"f@o.pl","phone":"123456789"}]"
responseText: "[{"id":"3","login":"ada","created":"2014-06-20 07:00:20","email":"f@o.pl","phone":"123456789"}]"
responseType: ""
responseXML: null
...etc...
我的问题是如何获取我感兴趣的数据?我试过$data.responseText
,但它没有用。有什么想法吗?