当前位置:网站首页>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
边栏推荐
- [automated test] cypress manual
- 高迸发解决方案2
- Leetcode- first unique character in string - simple
- Introduction to USB learning (5) -- looking back, the man was in the dim light
- USB 0xc0000011 error
- Sentinel series integrates Nacos and realizes dynamic flow control
- Leetcode longest harmonic subsequence simple
- [spark]spark introductory practical series_ 8_ Spark_ Mllib (upper)__ Introduction to machine learning and sparkmllib
- USB debugging assistant (20191028)
- Nacos series registry principle and source code analysis
猜你喜欢
随机推荐
【ONE·Data || 带头双向循环链表简单实现】
Alibaba cloud OSS file download cannot be resumed at a breakpoint
Minimum spanning tree (prim+kruskal) learning notes (template +oj topic)
Record the basic use of zxing, the Google open source library, to generate and read QR codes
Explanation of sentinel series' features, composition and deployment
The difference between the increment and decrement operators before and after variables i+, +i, I –, – I
Leetcode perfect number simple
Leetcode- intersection of two arrays - simple
Printf function
OpenGL Mosaic (8)
Leetcode- number of words in string - simple
【MySQL】基础知识小复习
High availability of Nacos series
Test logiciel - résumé des FAQ d'interface
How MySQL optimizes the use of joint index ABC
js将文本转成语言播放
Let's talk about how ArrayList is dynamically resized and what kind of mechanism is it?
@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
軟件測試——接口常見問題匯總
Software testing - Summary of common interface problems

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





