showShareMenu:fail no permission 报错为什么
wx.showShareMenu ({
withShareTicket : 'true' ,
success () {
console . log ( '成功调用' )
wx.onShareAppMessage ( function () {
// 用户点击了“转发”按钮
return {
title : '转发标题'
}
})
},
fail (data){
console . log (data);
}
});
手机测试:提示 shareAppMessage:fail :access denied
开发者工具提示