PHP array to jquery array via JSON

后端 未结 4 1575
执念已碎
执念已碎 2021-01-26 10:37

Im having a little confusion why the following is not working.

get.php



        
4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-26 11:10

    data contains a string of the JSON, so arr[2] will be the third character in the string. You need to use $.parseJSON(data).

提交回复
热议问题