bb0ecafc by yangjianbin

init

1 parent cd22f38f
......@@ -206,22 +206,14 @@ class Work extends CI_Controller {
$data['draw'] = $_GET['draw']++;
$data['recordsTotal'] = 57;
$data['recordsFiltered'] = 57;
$data['data'] = [
['id' => 1001, 'name' => '张四'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
['id' => 1001, 'name' => '张三'],
];
$data['data'] = array();
for ($i = 0; $i < 57; $i++) {
$arr = array(
'id'=>$i,
'name'=>'小明'.$i
);
$data['data'][] = $arr;
}
$this->output->set_content_type('application/json')->set_output(json_encode($data));
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!