当前位置:网站首页>Uniapp WebView listens to the callback after the page is loaded
Uniapp WebView listens to the callback after the page is loaded
2022-07-28 06:07:00 【Alex_ z0897】
stay android perhaps flutter Use in webview When , Usually, you can get the page before and after loading , Use this event to do some interception control
Pseudo code
var currentWebview = this.$scope.$getAppWebview();
let wv = currentWebview.children()[0]
wv.addEventListener('loaded',function() {
console.log(wv.getURL()) // obtain url
console.log(wv.getTitle()) // Get the title
}, false);
Refer to this document for other events
http://www.html5plus.org/doc/zh_cn/webview.html#plus.webview.WebviewEvent
边栏推荐
猜你喜欢

微信小程序制作模板套用时需要注意什么呢?

There is a problem with MySQL paging

Xshell suddenly failed to connect to the virtual machine

微信小程序开发制作注意这几个重点方面
![Notice of attack: [bean Bingbing] send, sell, cash, draw, prize, etc](/img/53/d6db223712c4fe0cdcab313ec5dea8.jpg)
Notice of attack: [bean Bingbing] send, sell, cash, draw, prize, etc

将项目部署到GPU上,并且运行

mysql分页出现问题

微信小程序开发费用制作费用是多少?

使用pycharm创建虚拟环境

Distributed cluster architecture scenario optimization solution: session sharing problem
随机推荐
JS!!
Invalid packaging for parent POM x, must be “pom“ but is “jar“ @
【6】 Redis cache policy
ModuleNotFoundError: No module named ‘pip‘
分布式集群架构场景优化解决方案:分布式调度问题
Digital collections strengthen reality with emptiness, enabling the development of the real economy
mysql分页出现问题
Data warehouse tool superset installation (fully available)
Micro service architecture cognition and service governance Eureka
Chapter 8 aggregate function
Quick look-up table to MD5
Digital collections "chaos", 100 billion market change is coming?
3: MySQL master-slave replication setup
XShell突然间无法连接虚拟机
微信小程序开发语言一般有哪些?
Distributed cluster architecture scenario optimization solution: distributed ID solution
How digital library realizes Web3.0 social networking
【4】 Redis persistence (RDB and AOF)
Variables, process control and cursors
【一】redis简介