webview的update-title设为false < template > < view > < web-view :webview-styles = " webviewStyles " update-title="false" src = " https://uniapp.dcloud.io/static/web-view.html " > </ web-view > </ view > </ template >
Add a line to “globalStyle” in pages.json: “navigationStyle”: “custom”,
You can also add in onReady
setTimeout(()=>{
uni.setNavigationBarTitle({
title: ‘The title to be set in the app’
})
}, 2000)
…
This article is reprinted from https://blog.p2hp.com/archives/8517
This site is for inclusion only, and the copyright belongs to the original author.