Parse PHP array of objects with jQuery Ajax

前端 未结 3 1221
悲&欢浪女
悲&欢浪女 2021-01-15 16:43

I\'m trying to get an array of objects with data from my database into jquery to render on a website.

ex: example.php



        
3条回答
  •  别那么骄傲
    2021-01-15 17:38

    You need call testFunction() in example.php

    example = 'test';
    
        return json_encode($data);
      }
         echo testFunction();
    ?>
    

提交回复
热议问题