使用
var scope = "snsapiuserinfo",
state = "" + (+new Date());
Wechat.auth(scope, state, function (response) {
// you may use response.code to get the access token.
alert(JSON.stringify(response));
}, function (reason) {
alert("Failed: " + reason);
});
未打印任何东西。
进入白页,点击白页左上角取消后,进入微信APP页面。
安卓已经运行良好。
IOS环境下: 使用 Wechat.isInstalled(function (installed) { alert("Wechat installed: " + (installed ? "Yes" : "No")); }, function (reason) { alert("Failed: " + reason); }); 打印出Wechat installed:yes
使用 var scope = "snsapiuserinfo", state = "" + (+new Date()); Wechat.auth(scope, state, function (response) { // you may use response.code to get the access token. alert(JSON.stringify(response)); }, function (reason) { alert("Failed: " + reason); }); 未打印任何东西。 进入白页,点击白页左上角取消后,进入微信APP页面。
请问是什么问题导致的呢?该如何解决呢?麻烦您了,谢谢!