Переглянути джерело

新旧搜索工具添加【重置】功能

tanghongbin 4 роки тому
батько
коміт
e44a69c6d1
2 змінених файлів з 4 додано та 2 видалено
  1. 2 1
      web/new_searchTool.html
  2. 2 1
      web/old_searchTool.html

+ 2 - 1
web/new_searchTool.html

@@ -96,6 +96,7 @@
     </div>
 
     <center class="top-bar">
+        <input id="in_button" type="button" value="reset" style="border: 1px solid #e6cdcd; height: 60px; width: 100px;" onclick="onReset()">
         <ul>
             <li>
                 <a href="login.html" title="Log Out">
@@ -1442,7 +1443,7 @@
         post_data['word_key'] = word_key;
         post_data['token'] = $.cookie('access_token');
         $.postJSON(
-            http_ip_prot + 'searchtool/reset', JSON.stringify(post_data),
+            http_ip_prot + 'langWord/reset', JSON.stringify(post_data),
             function (data) {
                 if (data['code'] == 0) {
                     // console.log(data['res'])

+ 2 - 1
web/old_searchTool.html

@@ -96,6 +96,7 @@
     </div>
 
     <center class="top-bar">
+        <input id="in_button" type="button" value="reset" style="border: 1px solid #e6cdcd; height: 60px; width: 100px;" onclick="onReset()">
         <ul>
             <li>
                 <a href="login.html" title="Log Out">
@@ -1442,7 +1443,7 @@
         post_data['word_key'] = word_key;
         post_data['token'] = $.cookie('access_token');
         $.postJSON(
-            http_ip_prot + 'searchtool/reset', JSON.stringify(post_data),
+            http_ip_prot + 'langWord/reset', JSON.stringify(post_data),
             function (data) {
                 if (data['code'] == 0) {
                     // console.log(data['res'])