function halt_re($str_alert) { $arr_re = array("re" => $this->alert[$str_alert]); exit(json_encode($arr_re)); //输出错误信息 }