当前位置:网站首页>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: {
}
}
边栏推荐
- [Deep Learning] Today's bug (August 2)
- window.open不显示favicon.icon
- To add digital wings to education, NetEase Yunxin released the overall solution of "Internet + Education"
- Not to be ignored!Features and advantages of outdoor LED display
- ECCV 2022 | 基于关系查询的时序动作检测方法
- 深入浅出Flask PIN
- Tolstoy: There are only two misfortunes in life
- 一文看懂推荐系统:召回01:基于物品的协同过滤(ItemCF),item-based Collaboration Filter的核心思想与推荐过程
- DC-DC 2C (40W/30W) JD6606SX2 power back application
- CopyOnWriteArrayList details
猜你喜欢

30W 2C(JD6606S + FP6652X2)BOM

AWS China SDN Connector

Introduction to the advantages of the new generation mesh network protocol T-Mesh wireless communication technology

How to analyze the weekly activity rate?

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

spark入门学习-2

STM32 GPIO LED和蜂鸣器实现【第四天】
![STM32 GPIO LED and buzzer implementation [Day 4]](/img/13/dbfed5a207e97ba0b78c1f63712e16.png)
STM32 GPIO LED and buzzer implementation [Day 4]

AI也有健忘症?英国41岁教授专访:解决灾难性遗忘

Analysis of ffplay video playback principle
随机推荐
DataGrip:非常好用的数据库工具,安装与使用教程,亮点介绍
世界顶级级架构师编写2580页DDD领域驱动设计笔记,属实有牌面
下午见!2022京东云数据库新品发布会
MATLAB gcf figure save image with black background/transparent background
我写了个”不贪吃蛇“小游戏
全新探险者以40万的产品击穿豪华SUV价格壁垒
2021年数据泄露成本报告解读
smp,numa和mpp体系结构总结
建造者模式/生成器模式
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!.
红蓝对抗经验分享:CS免杀姿势
leetcode: 899. Ordered Queue [Thinking Question]
CopyOnWriteArrayList详解
Convex Optimization of Optimal Power Flow (OPF) in Microgrids and DC Grids (Matlab Code Implementation)
1、实例开启无锁表结构变更以后,在任务编排中通过“单实例SQL”节点进行的结构变更,是优先采用无锁表
袁小林:沃尔沃专注于出行的安全感,并且把它做到极致
深入浅出Flask PIN
devops-2:Jenkins的使用及Pipeline语法讲解
MPLS的wpn实验
基于DMS的数仓智能运维服务,知多少?