• 2025-12-02
php返回json数据

返回JSON数据需设置header(‘Content-Type:application/json;charset=utf-8’)并使用json_encode()转换数组或对象,如:$data=[‘co......

11