Retrieving JSON array in Javascript from PHP

后端 未结 3 500
我寻月下人不归
我寻月下人不归 2021-01-28 13:07

I am attempting to return a json encoded array to JS from PHP and i\'ve done so many times before but now i\'m getting a weird error. I am successfully getting the data and it\'

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-28 13:59

    The variable parsed at your $.each function is not defined. you should use data instead of parsed as data is the variable at your success callback function.

    $.each(data, function(i, index) {
        alert(index.fullURL);
        });
    

提交回复
热议问题