
改变标题栏的文字:
uni.setNavigationBarTitle({ title: "新的导航栏标题" })
改变标题栏前景色和背景色:
uni.setNavigationBarColor({ frontColor: "#ffffff", backgroundColor: "#007AFF" })
页面跳转:


//跳转新页面,并传递数据 uni.navigateTo({ url: 'new-page/new-vue-page-1?data=Hello' }) //返回上一页 uni.navigateBack(); //在当前页面打开 uni.redirectTo({ url: 'new-page/new-vue-page-1' }); //切换到模板选项卡 uni.switchTab({ url: '/pages/tabBar/template/template' }); //关闭所有页面,打开首页 uni.reLaunch({ url: '/pages/tabBar/component/component' });
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/176784.html原文链接:https://javaforall.net
