Explorar el Código

更新 'login_html.js'

WXT往昔 hace 3 años
padre
commit
be3d5b2284
Se han modificado 1 ficheros con 7 adiciones y 5 borrados
  1. 7 5
      login_html.js

+ 7 - 5
login_html.js

@@ -75,11 +75,13 @@ z-index:999999;">
  
  
     $('input[placeholder="请输入内容"]').attr('id','search').attr('autocomplete','off');
-      $('#search').focus(function(){
-        $(this).attr('placeholder','')
-    }).blur(function () {
-        $(this).attr('placeholder','请输入内容')
-    });
+     setTimeout(function () {
+        $('#search').focus(function(){
+            $(this).attr('placeholder','')
+        }).blur(function () {
+            $(this).attr('placeholder','请输入内容')
+        });
+    },300)
  
  $('head').after(`
     <style>