Bladeren bron

更新 'wechat.js'

wxb 8 jaren geleden
bovenliggende
commit
de67acd9a7
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      wechat.js

+ 3 - 3
wechat.js

@@ -1,4 +1,4 @@
-window.onload=function(){
+window.onload=()=>{
     if(asny()){
         return;
     }else if(asny()=='none'){
@@ -9,7 +9,7 @@ window.onload=function(){
         return;
     }
 }
-function asny(){
+asny=()=>{
     if (/MicroMessenger/.test(window.navigator.userAgent)) { 
         return true; 
     } else if (/AlipayClient/.test(window.navigator.userAgent)) { 
@@ -18,7 +18,7 @@ function asny(){
         return 'none';
     }
 }
-function firstSpan(){
+firstSpan=()=>{
         var moneyInput=document.getElementsByClassName("moneyInput")[0];
         var number=moneyInput.querySelector("input");
         var first=document.getElementsByClassName("firstSpan")[0].children,