当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
微信小程序开发制作注意这几个重点方面
ModuleNotFoundError: No module named ‘pip‘
Regular verification rules of wechat applet mobile number
Trino function tag
Data warehouse tool superset installation (fully available)
KubeSphere安装版本问题
Idempotent component
【一】redis简介
NLP中常用的utils
Kotlin语言现在怎么不火了?你怎么看?
mysql分页出现问题
微信小程序制作模板套用时需要注意什么呢?
SQLAlchemy使用相关
Record the problems encountered in online capacity expansion server nochange: partition 1 is size 419428319. It cannot be grown
svn incoming内容无法更新下来,且提交报错:svn: E155015: Aborting commit: XXX remains in conflict
【4】 Redis persistence (RDB and AOF)
Create a virtual environment using pycharm
小程序开发如何提高效率?
flutter webivew input唤起相机相册
Mysql5.6 (according to.Ibd,.Frm file) restore single table data








