作为一个前端如何用php写几个接口,当前介绍的是查询接口,先建一个data.php ,代码如下: header("Content-type:text/html; charset=utf-8"); //返回数据的数组 $o