小程序 添加新的功能, 页面跳转后,通过事件的发布订阅,实现 from => to 或者 to=> from 数据传递

1. 跳转到指定页面。 通过 wx.navigateTo() 。请参考官方文档

微信小程序 -----  this.getOpenerEventChannel is not a function

 

2. 进入当前跳转页面。onload() 。 参考官方文档

微信小程序 -----  this.getOpenerEventChannel is not a function

 

 

 

微信小程序 -----  this.getOpenerEventChannel is not a function

 

 

解决方案:

  1. 页面json配置文件的 usingComponents。加上。没有特殊情况,请不要删除。
  2. 在小程序开发工具中,基础版本库要求是 2.7.7以上、 (我自己设置的是 7.7.7,毕竟文档更新快,所以防止后期出现问题。选择版本高一些。)
  3. 微信小程序 -----  this.getOpenerEventChannel is not a function

     

     

相关文章:

  • 2021-09-21
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2021-05-14
  • 2021-11-13
猜你喜欢
  • 2022-01-25
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2021-12-17
相关资源
相似解决方案