Jelajahi Sumber

feat(KIP-19172): weixinjsdk加载

john 9 bulan lalu
induk
melakukan
d8577de247
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      index.html

+ 4 - 1
index.html

@@ -59,7 +59,10 @@
         document.writeln('<script src="https://appx/web-view.min.js"' + '>' + '<' + '/' + 'script>');
         window.isAlipayClient = true
       } else {
-        document.writeln('<script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js"' + '>' + '<' + '/' + 'script>');
+        // document.writeln('<script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js"' + '>' + '<' + '/' + 'script>');
+        const script = document.createElement('script');
+        script.src = 'https://res.wx.qq.com/open/js/jweixin-1.6.0.js';
+        document.body.appendChild(script);
       }
     </script>
   </head>