网站应用微信扫码登录时不显示二维码,这是为什么?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
二维码在这里
<div id="weixin"></div>
</body>
<script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"/>
<script>
var obj = new WxLogin({
self_redirect:true,
id:"weixin",
appid: "这里的ID是没有问题的",
scope: "snsapi_login",
redirect_uri: encodeURIComponent("https://这里的接口也是没有问题的"),
state: "authWebDemo",
style: "black",
href: ""
});
</script>
</html>