错误记录:

小程序丨 报错:app is not defined;

解决方案:

Js头部添加:var app = getApp();

 

 

返回按钮:

wx.navigateBack();

 

转发功能:

onShareAppMessage: function (res) {

if (res.from === 'button') {

console.log(res.target)

}

return {

title: '大学考试题库',

path: '/pages/choiceMain/choiceMain',

success: function (res) {

// 转发成功

},

fail: function (res) {

// 转发失败

}

}

}

 

文章来源:刘俊涛的博客

地址:http://www.cnblogs.com/lovebing

欢迎关注,有问题一起学习欢迎留言、评论。

相关文章:

  • 2021-11-15
  • 2021-10-13
  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2021-11-15
  • 2021-11-12
猜你喜欢
  • 2021-11-15
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
相关资源
相似解决方案