我使用以下代码在嵌套页面中显示后退按钮(' menu.settings.term_of_service'):
public static int indexOfMaxInRange(int[] a, int lowIndex, int highIndex){
if((highIndex - lowIndex) == 0){
return highIndex;
}else if(a[lowIndex] >= a[highIndex]){
//Changed to recursive call
return indexOfMaxInRange(a, lowIndex, highIndex - 1);
}else{
//Changed to recursive call
return indexOfMaxInRange(a, lowIndex + 1, highIndex);
}
}
public static void main(String[] args) {
int[] a = new int[5];
a[0] = 4;
a[1] = 3;
a[2] = 6;
a[3] = 4;
a[4] = 2;
System.out.println(indexOfMaxInRange(a, 0, a.length - 1));
}
这里也是routes.js:
<ion-nav-buttons side="left">
<button class="button icon ion-chevron-left" ui-sref="menu.settings" ></button>
</ion-nav-buttons>
问题在于,当我按下它时,在页面中(&#39; menu.settings&#39;)它仍会显示后退按钮,以便在菜单中再次返回.settings.term_of_service&#39 ;页面而不是&#39;菜单&#39;酒吧。有什么想法吗?