Navigator 导航
静态方法,无界面和交互
何时使用#
例如 button 点击事件之后,需要 location.href 到相应页面,实现location.href 类似的功能。
Navigator#
Navigator.setTitle(title)#
- 设置页面标题,weex容器里显示在容器顶部,h5状态等同于document.title
Navigator.push(url,title,urlType, animated = true, param = {})#
- 导航到下个页面,h5 端降级为location.href, weex 容器中采用qap navigator 组件新开一个容器。
urlType
,可选weex
,url
,默认值为weex