소스 검색

更新 'wechat.js'

wxb 8 년 전
부모
커밋
de67acd9a7
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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,