Browse Source

Merge pull request #604 from John-Hong/release-3.19.0

feat(KIP-19172): weixinjsdk加载
John-Hong 9 months ago
parent
commit
4fec6a76ed
1 changed files with 4 additions and 1 deletions
  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>