输出的json数据不影响



function json($data){
   header('Content-Type:application/json; charset=utf-8');
   ob_clean();
   echo json_encode($data,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);exit;

}


^