写了三个隐藏域,将后台生成的三个值传到它们的value里js获取对吗?
wx.config({
debug: true,
appId: 'wx06907b4646541e4b',
timestamp: $("input[id$='timestamp']").val(),
nonceStr: $("input[id$='nonceStr']").val(),
signature: $("input[id$='signature']").val(),
jsApiList: [
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'hideMenuItems',
'showMenuItems',
'hideAllNonBaseMenuItem',
'showAllNonBaseMenuItem',
'translateVoice',
'startRecord',
'stopRecord',
'onRecordEnd',
'playVoice',
'pauseVoice',
'stopVoice',
'uploadVoice',
'downloadVoice',
'chooseImage',
'previewImage',
'uploadImage',
'downloadImage',
'getNetworkType',
'openLocation',
'getLocation',
'hideOptionMenu',
'showOptionMenu',
'closeWindow',
'scanQRCode',
'chooseWXPay',
'openProductSpecificView',
'addCard',
'chooseCard',
'openCard'
]
});
这样写对吗,请教我是菜鸟