function wang_json($data){ //返回JSON数据格式到客户端,包含状态信息 header(' Content-Type:application/json; charset=utf-8 '); header('Access-Control-Allow-Origin: *');//允许跨域 echo json_encode($data); }
function wang_json($data){ //返回JSON数据格式到客户端,包含状态信息 header(' Content-Type:application/json; charset=utf-8 '); header('Access-Control-Allow-Origin: *');//允许跨域 echo json_encode($data); }