当前位置:网站首页>The title of the WebView page will be displayed in the top navigation bar of the app. How to customize
The title of the WebView page will be displayed in the top navigation bar of the app. How to customize
2022-06-13 06:05:00 【lsg_ lsg_ lsg】
mounted() In the method
// obtain webview page
var currentWebview = this.$mp.page.$getAppWebview().children()[0};
currentWebview.addEventListener('loaded', function() {
setTimeout(()=>{
uni.setNavigationBarTitle({
title:‘app Title to be set in ’
})
},1000)
}, false);
because uni.setNavigationBarTitle Than Built in webview page Run fast , The set title will be loaded webview On the page title Cover , So add a delay and change it
onclose: Webview Window closing event
onerror: Webview Window error event
onloaded: Webview Window page loading completion event
onloading: Webview The window page starts loading events
边栏推荐
- OpenGL馬賽克(八)
- The SQL file of mysql8.0 was imported into version 5.5. There was a pit
- After MySQL is installed, enter the "net start MySQL" command, and an error is reported that "net" is neither an internal or external command nor a runnable program
- Misunderstanding of tongweb due to ease of use
- Annotation only integration SSM framework
- Tongweb crawl performance log script
- 3. Postman easy to use
- @The detailed explanation of configurationproperties and the problem that all properties of the entity bean modified by this annotation are null after injection are solved
- Pod libwebp error reporting solution
- Mobile end adaptation scheme
猜你喜欢

軟件測試——接口常見問題匯總

Zero copy technology
![[to]12 common IP commands in the iproute installation package](/img/65/a214d137e230b1a1190feb03660f2c.jpg)
[to]12 common IP commands in the iproute installation package

Pod libwebp error reporting solution

Concurrent programming -- source code analysis of thread pool

微信小程序:点击事件获取当前设备信息(基础)

Echart柱状图:堆叠柱状图显示value

MySQL stored procedure

How MySQL optimizes the use of joint index ABC

AUTOSAR actual combat tutorial pdf version
随机推荐
Echart柱状图:堆叠柱状图显示value
MySQL stored procedure
Concurrent programming -- what is threading?
Complete USB debugging assistant
Leetcode- reverse string ii- simple
自我总结ing
Leetcode Hamming distance simple
Security baseline check script - the road to dream
Leetcode- number of words in string - simple
Swift property property
MySQL trigger
Zero copy technology
Timeout thread log for tongweb
微信小程序:基础复习
Missing tag identification in cots RFID systems: bringing the gap between theory and Practice
Cmake add -fpic option GCC
php redis 制作高迸发秒杀
Introduction to USB learning (I) -- Dongfeng night flower tree
arrayList && linkedList
You still can't remotely debug idea? Come and have a look at my article. It's easy to use