当前位置:网站首页>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: {
}
}
边栏推荐
- window.open does not show favicon.icon
- Some optional strategies and usage scenarios for PWA application Service Worker caching
- Difference and performance comparison between HAL and LL library of STM32
- 人脸识别损失函数的汇总 | Pytorch版本实现
- 为教育插上数字化的翅膀,网易云信发布「互联网+教育」整体解决方案
- 基于DMS的数仓智能运维服务,知多少?
- TCP 可靠吗?为什么?
- "Avnet Embedded Weekly" Issue 276: 2022.07.25--2022.07.31
- 如何选择合适的损失函数,请看......
- smp,numa和mpp体系结构总结
猜你喜欢

Why do I strongly recommend using smart async?

leetcode-693.交替位二进制数

Common distributed theories (CAP, BASE) and consensus protocols (Gosssip, Raft)

基于DMS的数仓智能运维服务,知多少?

生态剧变,电子签名SaaS模式迎来新突破,网络效应加速到来

美国国防部更“青睐”光量子系统研究路线

深入浅出Flask PIN

Interpretation of the 2021 Cost of Data Breach Report

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!.

AWS China SDN Connector
随机推荐
Windows 事件查看器记录到 MYSQL
【Unity入门计划】基本概念(6)-精灵渲染器 Sprite Renderer
请问下阿里云全托管flink能执行两条flink sql命令么?
smp,numa和mpp体系结构总结
TCP 可靠吗?为什么?
甲方不让用开源【监控软件】?大不了我自己写一个
Leetcode76. Minimal Covering Substring
简易网络传输方法
我写了个”不贪吃蛇“小游戏
【Unity入门计划】基本概念(8)-瓦片地图 TileMap 02
AI+BI+Visualization, Deep Analysis of Sugar BI Architecture
1、实例开启无锁表结构变更以后,在任务编排中通过“单实例SQL”节点进行的结构变更,是优先采用无锁表
13、OOM模拟
JS basics--judgment
下午见!2022京东云数据库新品发布会
MATLAB gcf figure save image with black background/transparent background
扩展欧几里得求逆元实例
如何分析周活跃率?
Research on power flow in DC microgrid based on Newton's method (Matlab code implementation)
为什么我强烈推荐使用智能化async?