Weex 知识点

188 阅读1分钟

页面级别的数据传输-Page level data transfer(钉钉)

  • weex to weex 通过URL传参数(携带的数据量有限),通过weex storage module
  • weex to h5,h5 to weex 通过URL传参数
  • native to weex 通过alloc weex 容器中的option或者data传入,前者可以在weex.config中获取,后者可以在vm上下文中获取
  • weex to native 定义一个跳转native的module,使用native的属性或者init时传

如何在 pages 之间传递数据(官方建议)

如果你有两个页面,A 页面和 B 页面
  1. A -> B,使用 getConfig api or storage module 传递数据;
  2. B -> A,使用 storage module 传递数据。

Weex 页面跳转

navigator https://weex.apache.org/cn/references/modules/navigator.html
navigationbar的相关设置要在sdk中看,文档中没有,没有,没有啊

长列表的复用方案