PHP array to jquery array via JSON

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

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

get.php



        
4条回答
  •  半阙折子戏
    2021-01-26 11:21

    you can't gave the data value to the array.

     $.get("get.php", function(data){
         alert(data[2]);
    }, "json");
    

提交回复
热议问题