chenjunkai 6 jaren geleden
bovenliggende
commit
9fc099da3d
1 gewijzigde bestanden met toevoegingen van 14 en 1 verwijderingen
  1. 14 1
      web/index.html

+ 14 - 1
web/index.html

@@ -519,7 +519,20 @@
             'line': line,
             'orderByupdate': orderByupdate
         };
-        InitIndex(post_data)
+        $.postJSON(
+            http_ip_prot + 'langWord/query', JSON.stringify(post_data),
+            function (data) {
+                if (data['code'] == 0) {
+                    // console.log(data['res'])
+                    console.log(data)
+                    addTable(data['res'])
+                    let count_page = Math.ceil(data['res']['count'] / line)
+                    queryData(page)
+                } else {
+                    alert(data['msg'])
+                }
+            }
+        );
     }
 
     function searchKeyAction() {