这个问题很奇怪,所有的签名数据都正确,通过控制台一模一样的数据,可能上一次还好好的,下一次可能就jsapi调用错误
function wxpageinit(app_id, Timestamp, Nonce_str, sign) {
wx.config({
beta: true,
debug: false,
appId: app_id,
timestamp: Timestamp,
nonceStr: Nonce_str,
signature: sign,
jsApiList: ["checkJsApi", "chooseImage", "previewImage", "uploadImage", "downloadImage", "getNetworkType", "onHistoryBack", "selectEnterpriseContact", ]
});
wx.ready(function () {
try {
wx.onHistoryBack(function () {
return historyreturn();
})
} catch (e) { }
})
}
function setwxsign() {
$.ajax({
url: "/xxxxxxx.action?v=1",//后台签名
type: "GET",