Не могу понять в чем проблема. Не могу вывести объект - пишет undefined. В чем может быть проблема? Вот js:
$.ajax({
type : "GET",
async : true,
// cache : false,
success: function(data)
{
var invites = JSON.stringify(data)
var invites = JSON.parse(invites);
for (var i in invites)
{
console.log(invites[i].title_template);
};
},
url : 'index.php?app=my_feed&act=ajax_me',
dataType : 'json'
});
А вот сам json:
{"code":200,"message":"","data":{"list":{"yesterday":{"feed_id":"160","icon":"drop_favorit","user_id":"70","touser_id":"12","user_name":"Andrew_test","dateline":"1502276325","title_template":"Andrew_test ID: 70 \u0443\u0434\u0430\u043b\u0438\u043b \u0412\u0430\u0441 \u0438\u0437 \u0444\u0430\u0432\u043e\u0440\u0438\u0442\u043e\u0432.","title_data":{},"body_template":"","body_data":{},"body_general":"","image_1":"","image_1_link":"","image_2":"","image_2_link":"","image_3":"","image_3_link":"","image_4":"","image_4_link":"","hot":"0","icon_image":"https:\/\/ts1.steelsea.net\/data\/system\/feed\/drop_favorit.gif","date":"<span title=\"2017-08-09 15:58:45\"> \u0412\u0447\u0435\u0440\u0430 15:58:45<\/span>","user_avatar":"\/data\/system\/icon_profile_man_small.jpg","new":0,"score":"<div class=\"mark \"><span class=\"score\" title=\"\">0<\/span><\/div>"},"2017-08-03":{"feed_id":"140","icon":"read_message","user_id":"2","touser_id":"12","user_name":"Fredi","dateline":"1501707798","title_template":"Fredi ID: 2 \u043f\u0440\u043e\u0447\u0435\u043b \u0432\u0430\u0448\u0435 \u043f\u0438\u0441\u044c\u043c\u043e: erhthrthtr....","title_data":{"title":"erhthrthtr..."},"body_template":"","body_data":{},"body_general":"","image_1":"","image_1_link":"","image_2":"","image_2_link":"","image_3":"","image_3_link":"","image_4":"","image_4_link":"","hot":"0","icon_image":"https:\/\/ts1.steelsea.net\/data\/system\/feed\/read_message.gif","date":"2017-08-03 02:03:18","user_avatar":"\/data\/system\/icon_profile_man_small.jpg","new":0,"score":"<div class=\"mark \"><span class=\"score\" title=\"\">0<\/span><\/div>"},"2017-08-02":{"feed_id":"134","icon":"add_blacklist","user_id":"2","touser_id":"12","user_name":"Fredi","dateline":"1501698284","title_template":"Fredi ID: 2 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0412\u0430\u0441 \u0432 \u0447\u0435\u0440\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.","title_data":{},"body_template":"","body_data":{},"body_general":"","image_1":"","image_1_link":"","image_2":"","image_2_link":"","image_3":"","image_3_link":"","image_4":"","image_4_link":"","hot":"0","icon_image":"https:\/\/ts1.steelsea.net\/data\/system\/feed\/add_blacklist.gif","date":"2017-08-02 23:24:44","user_avatar":"\/data\/system\/icon_profile_man_small.jpg","new":0,"score":"<div class=\"mark \"><span class=\"score\" title=\"\">0<\/span><\/div>"}},"pagenator":{"curr_page":1,"pageper":40,"item_count":"16","page_count":1}}}
Айфон мало держит заряд, разбираемся с проблемой вместе с AppLab
Перевод документов на английский язык: Важность и ключевые аспекты
Есть 2 формы на одной странице , есть много повторяющихся пунктов , можно как то на JS сделать , что бы одинаковые заполнялись одновременно или...
Доброго времени сутокУже долгое время я пытаюсь запустить скрипт, перепробовал много разных способов, но всё напрасно
Вопрос вот в чемЕсть массив объектов, в одном из объектов есть метод coords(x,y)