//分享到 客户朋友圈 showTop() { console.log(1) wx.invoke("shareToExternalMoments", { text: { content: "测试", // 文本内容 }, }, function (res) { if (res.err_msg == "shareToExternalMoments:ok") { } } ); }, 调用就直接报错,wx.invoke is not a function; [Component] Event Handler Error @ pages/hb/assistant/assistant#bound showTop TypeError: wx.invoke is not a function
js-sdk 调用shareToExternalMoments发朋友圈失败wx.invoke("shareToExternalMoments", { text: { content: "来自侧边栏", } }, (res) => { console.log(res) if (res.err_msg == "shareToExternalMoments:ok") { console.log("成功") } } ); //报这样的错误 Exception: TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context. at Function.remoteFunction
2021-08-30