huaisianhuang 4 năm trước cách đây
mục cha
commit
7f88847617
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      step_question/apis/static/index-line.html

+ 3 - 2
step_question/apis/static/index-line.html

@@ -144,9 +144,10 @@
       }
       showcoffee();
 
+    
     function getUserid() {
-      let temparr = document.location.href.split('');
-      let id = temparr[-1];
+      const urlParams = new URLSearchParams(document.location.href);
+      let id = urlParams.get('userid');
       $('#userid').val = id;
      // console.log(id);
     }