当前位置:网站首页>uniapp的webview滑动缩放
uniapp的webview滑动缩放
2022-08-03 16:00:00 【spring-java】
直接上代码
<template>
<view>
<web-view :src="svgUrl" @message="message"></web-view>
</view>
</template>
var wv;
export default {
data() {
return {
svgUrl:“”
}
},
onShow() {
plus.navigator.setFullscreen(true)
},
onUnload() {
plus.navigator.setFullscreen(false)
},
onReady() {
let currentWebview = this.$mp.page.$getAppWebview() //获取当前页面的webview对象
setTimeout(function() {
wv = currentWebview.children()[0]
wv.setStyle({
scalable: true
})
}, 1000); //如果是页面初始化调用时,需要延时一下
},
methods: {
}
}
边栏推荐
- 常见分布式理论(CAP、BASE)和一致性协议(Gosssip、Raft)
- MATLAB | 一种简易的随机曼陀罗图形生成函数
- 【Unity入门计划】基本概念(7)-Input Manager&Input类
- How to start an NFT collection
- 字典表(还需要输入2个字)
- How to analyze the weekly activity rate?
- Convex Optimization of Optimal Power Flow (OPF) in Microgrids and DC Grids (Matlab Code Implementation)
- I am doing open source in Didi
- 1、实例开启无锁表结构变更以后,在任务编排中通过“单实例SQL”节点进行的结构变更,是优先采用无锁表
- mysql delete 执行报错:You can‘t specify target table ‘doctor_info‘ for update in FROM clause
猜你喜欢

Yii2安装遇到Loading composer repositories with package information

A new round of competition for speech recognition has started. Will natural dialogue be the next commanding height?

如何分析周活跃率?

To add digital wings to education, NetEase Yunxin released the overall solution of "Internet + Education"

How to get the 2 d space prior to ViT?UMA & Hong Kong institute of technology & ali SP - ViT, study for visual Transformer 2 d space prior knowledge!.

DataGrip:非常好用的数据库工具,安装与使用教程,亮点介绍

To participate in sweepstakes, incoming new programmers magazine welfare!

QT QT 】 【 to have developed a good program for packaging into a dynamic library

leetcode-268.丢失的数字

Detailed ReentrantLock
随机推荐
socket快速理解
Tolstoy: There are only two misfortunes in life
Reptile attention
请问下,flink cdc监控oracle,我看源码是通过sid方式的,请问怎么改成service
劲爆!协程终于来了!线程即将是过去式
证实了,百度没有快照了
How to get the 2 d space prior to ViT?UMA & Hong Kong institute of technology & ali SP - ViT, study for visual Transformer 2 d space prior knowledge!.
2021年数据泄露成本报告解读
【QT】Qt 给已经开发好的程序快速封装成动态库
世界顶级级架构师编写2580页DDD领域驱动设计笔记,属实有牌面
一个文件管理系统的软硬件配置清单
I am doing open source in Didi
Ruoyi Ruoyi framework @DataScope annotation use and some problems encountered
字典表(还需要输入2个字)
How much do you know about the intelligent operation and maintenance service of data warehouse based on DMS?
一文看懂推荐系统:召回02:Swing 模型,和itemCF很相似,区别在于计算相似度的方法不一样
使用Make/CMake编译ARM裸机程序(基于HT32F52352 Cortex-M0+)
用友YonSuite与旺店通数据集成对接-技术篇2
STM32的HAL和LL库区别和性能对比
聊聊这个SaaS领域爆火的话题