cd22f38f by Zelig

datatable 分页bug

1 parent 4b2fcc3b
...@@ -203,11 +203,11 @@ class Work extends CI_Controller { ...@@ -203,11 +203,11 @@ class Work extends CI_Controller {
203 203
204 public function data() 204 public function data()
205 { 205 {
206 $data['draw'] = 1; 206 $data['draw'] = $_GET['draw']++;
207 $data['recordsTotal'] = 57; 207 $data['recordsTotal'] = 57;
208 $data['recordsFiltered'] = 57; 208 $data['recordsFiltered'] = 57;
209 $data['data'] = [ 209 $data['data'] = [
210 ['id' => 1001, 'name' => '张'], 210 ['id' => 1001, 'name' => '张'],
211 ['id' => 1001, 'name' => '张三'], 211 ['id' => 1001, 'name' => '张三'],
212 ['id' => 1001, 'name' => '张三'], 212 ['id' => 1001, 'name' => '张三'],
213 ['id' => 1001, 'name' => '张三'], 213 ['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!