PHP 封裝ajax返回數據格式

protected function ajaxReturn($data, $type='') { if(empty($type)) $type = 'JSON'; switch (strtoupper($type)){ case 'JSON' : // 返回JSON數據格式到客戶端 包含狀態信息
相關文章
相關標籤/搜索