uniapp dynamically modifies the header title, font color, and background color

onReady(){
    uni.setNavigationBarTitle({
         title: '标题名称'
    })
   uni.setNavigationBarColor({
     frontColor: '#ffffff',   //字体颜色
     backgroundColor: '#000000'    //背景颜色
   })
}

Guess you like

Origin blog.csdn.net/stars______/article/details/131708975
Recommended