array(1) {
["{"id":432067845,"first_name":"Марк","last_name":"Сергеев","is_closed":false,"can_access_closed":true,"sex":2,"bdate":"29_6_1983","city":{"id":1,"title":"Москва"},"country":{"id":1,"title":"Россия"},"photo_100":"https://sun9-29_userapi_com/c855628/v855628666/152ba6/LhxTHnMO9Ys_jpg?ava"]=>
string(104) "1","photo_200":"https://sun9-49.userapi.com/c855628/v855628666/152ba5/-kjl1kGs9Fo.jpg?ava=1","online":1}"
}
const request = new XMLHttpRequest();
const url="roomUser/BootData.php";
console.info(app.VK_info)
const params = JSON.stringify(app.VK_info);
//request.responseType = "json";
request.open("POST", url, true);
request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
request.addEventListener("readystatechange", () => {
if (request.readyState === 4 && request.status === 200) {
window.app.boot = request.response;
console.info(app.boot)
}
});
request.send(params);
app.VK_info
обычный объект let win ='2_6_3_1';
let ystring='1_2_3-1';
var arr = win.split('_').filter(function(n){
return ystring.split('-')[0].indexOf(n) >= 0;
});