Setting title bar and navigation bar of wechat applet tutorial series


How to set the title bar and navigation bar of wechat applet is as follows

Set title bar

Title bar window

stay app.json In the file, you can set the properties in the window object



Set navigation bar

Navigation bar tabbar

If our applet is a multi tab application (there is a tab bar at the bottom or top of the client window to switch pages), then we can specify the performance of the tab bar through the tabbar configuration item and the corresponding page to be displayed when the tab is switched.
Welcome to join the whole stack development exchange circle: 582735936
For front-end personnel of 1-3 years
Help break through the neck of water bottle and improve thinking ability
Tip: jump through the page( wx.navigateTo )Or page redirection( wx.redirectTo )The page reached, even if it is defined in the tabbar configuration, does not display the tab bar at the bottom.

Tabbar is an array. You can only configure at least 2 and up to 5 tabs. The tabs are sorted in the order of array.



The above is the whole content of this paper, I hope to help you with your study

Recommended Today

Think about open source project promoting rust search extension: quickly search rust documents in the browser address bar

Open source project name:Rust Search Extension Introduction to open source projects:Quick search for rust documents in the browser address barOpen source project type:teamProject creation time:2020 GitHub data:375 Star,18 ForkGitHub address: Rust search extension is a plug-in that can quickly search rust documents, Crites, built-in properties and error codes in the browser address bar. It supports […]