我参考网上引用 wxLogin.js
<script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
var obj = new WxLogin({
id: "login_container",
appid: "xxxxxxxxx",
scope: "snsapi_login",
//snsapi_login
redirect_uri: encodeURIComponent("http://www.xxxxxxx.com/login.aspx"),
state: Math.ceil(Math.random()*1000),
style: "black",
href: ""});
后台 “网页授权获取用户基本信息” 已设置好www.xxxxxxx.com
这样提示 Scope 参数错误或没有 Scope 权限
请问下还有哪里需要注意设置?
我也遇到这个问题,使用微信自己的网页直接跳转没有问题,但是使用 login.js 就报这个错误,账号什么的都是没问题的