From 4a3cc85cdd9961ba486028a16069eea371ca0f88 Mon Sep 17 00:00:00 2001 From: "Mr.Chung" <2286732552@qq.com> Date: Tue, 2 Jul 2019 16:37:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88PHP=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/table.php | 35 ----------------------------------- page/table.html | 2 +- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 api/table.php diff --git a/api/table.php b/api/table.php deleted file mode 100644 index 5003fd1..0000000 --- a/api/table.php +++ /dev/null @@ -1,35 +0,0 @@ - 0; $limit-- && $startNum++) { - $data[] = [ - 'id' => $startNum, - 'username' => "姓名-{$startNum}", - 'sex' => "性别-{$startNum}", - 'city' => "城市-{$startNum}", - 'sign' => "签名-{$startNum}", - 'experience' => 646, - 'logins' => 53, - 'wealth' => 53, - 'classify' => "作家", - 'score' => 80, - ]; -} - -$result = [ - 'code' => 0, - 'msg' => '获取数据成功!', - 'count' => 10000, - 'data' => $data, -]; - -die(json_encode($result, JSON_UNESCAPED_UNICODE)); \ No newline at end of file diff --git a/page/table.html b/page/table.html index bef2a41..05dc032 100644 --- a/page/table.html +++ b/page/table.html @@ -70,7 +70,7 @@ table.render({ elem: '#currentTableId', - url: '../api/table.php', + url: '../api/table.json', cols: [[ {type: "checkbox", width: 50, fixed: "left"}, {field: 'id', width: 80, title: 'ID', sort: true},