3,143
社区成员
发帖
与我相关
我的任务
分享
wx.error(function(res) {
/* alert(res.errMsg); */
var i = 0;
for ( var o in res) {
i++;
alert(i+res[o]);
}
});
wx.ready(function(){
wx.checkJsApi({
jsApiList:['scanQRCode'],
success:function(res){
if(!res.checkResult.scanQRCode){
alert('你的微信客户端不支持JSSDK,请升级你的客户端');
}
}
});
});
var d = <%=(String) request.getAttribute("config")%> ;
$.post("sign", "url=" + window.location.href, function(data) {
$("#msg").text(data);
if (JSON.parse(data).code == 0) {
var config = JSON.parse(data).data;
config['debug'] = true;
config['jsApiList'] = [ 'scanQRCode' ];
wx.config(config);
} else {
var d = $.dialog({
title : '温馨提示',
content : json.msg,
button : [ '确定' ]
});
d.on("dialog:action", function(e) {
});
}
});