浏览代码

feat(KIP-19172): weixinjsdk加载

john 9 月之前
父节点
当前提交
d8577de247
共有 1 个文件被更改,包括 4 次插入1 次删除
  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>