请问如何测试微信JSSDK的wx.config配置是否成功?和wx.checkJsApi 是否通过?着急在线等!
这是自己的代码,可是测试时什么动静都没有?希望有这方面经验的大神给予帮助,我要做的是播放微信语音!
wx.config({
debug: true,
appId: 'wxf8b4f85f3a794e77',
timestamp: 1417504553,
nonceStr: 'HvKDeQuRmBNBSVyMOfA7ZxOjEj6RuxTlRaXDIFE0ywVzrOJ7kpwoaIno-G0IjL6gi7PGXLjzar4M7rKeAq6xNkohqZmPJgrMu2CbH_dR2so',
signature: 'e8de0fc3abc4870434e5b641bc252449f471026f',
jsApiList: [
'playVoice'
]
});
wx.ready(function (){
$("#playVocie").click(function(){
wx.playVoice({
jsApiList: [
'playVocie'
],
success: function (res) {
alert(JSON.stringify(res));
}
});
});
$("#playVoice").click(function(){
alert("播放语音");
});