导航到选项卡传递参数
Navigate to tab passing parameter
可以用这个方法传递参数:
this.app.getRootNav().getActiveChildNav().select(3);
我试过了:
this.app.getRootNav().getActiveChildNav().select(3, {apto: 1});
但是没用。
否,据docs the select
function only takes one parameter (tabOrIndex
) specifying the tab or index to select. A quick look into the corresponding code验证。
要解决此问题并将数据从一个选项卡传递到另一个选项卡,您可以参考 ,其中提供了解决此问题的三种可能方法。
可以用这个方法传递参数:
this.app.getRootNav().getActiveChildNav().select(3);
我试过了:
this.app.getRootNav().getActiveChildNav().select(3, {apto: 1});
但是没用。
否,据docs the select
function only takes one parameter (tabOrIndex
) specifying the tab or index to select. A quick look into the corresponding code验证。
要解决此问题并将数据从一个选项卡传递到另一个选项卡,您可以参考