|
public function data($id, $data) {
$rdata = array(
'id' => $id,
'data' => urldecode($data),
'ret_code'=> 0,
'message'=>'OK'
);
$this -> output -> set_content_type('application/json')
-> set_output($rdata);
}
输出错误:
SyntaxError: JSON.parse: unexpected character at line 2 column 1 of the JSON data |
|