cd22f38f by Zelig

datatable 分页bug

1 parent 4b2fcc3b
......@@ -203,11 +203,11 @@ class Work extends CI_Controller {
public function data()
{
$data['draw'] = 1;
$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' => '张三'],
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!