当前位置:网站首页>Uniapp one click Copy function effect demo (finishing)
Uniapp one click Copy function effect demo (finishing)
2022-07-08 01:47:00 【I'm happy】
<template>
<view>
<view @click="copy('2022093987615371')"></view>
</view>
</template>
<script>
methods:{
copy(value) {
// Prompt template
uni.showModal({
content: value, // Content prompted in the template
confirmText: ' Copy content ',
success: () => {
// Click the post adjustment function to copy the content.
//uni.setClipboardData The method is to copy the content to the pasteboard
uni.setClipboardData({
data: value, // Content to be copied
success: () => {
// Successfully copied callback function
uni.showToast({
// Tips
title: ' Replication success '
})
}
});
}
});
},
}
</script>
边栏推荐
猜你喜欢
How to make the conductive slip ring signal better
Redux usage
pb9.0 insert ole control 错误的修复工具
C language - modularization -clion (static library, dynamic library) use
qt--將程序打包--不要安裝qt-可以直接運行
Voice of users | understanding of gbase 8A database learning
About snake equation (1)
Optimization of ecological | Lake Warehouse Integration: gbase 8A MPP + xeos
碳刷滑环在发电机中的作用
神经网络与深度学习-5- 感知机-PyTorch
随机推荐
DataWorks值班表
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
Mat file usage
NPM Internal Split module
In depth analysis of ArrayList source code, from the most basic capacity expansion principle, to the magic iterator and fast fail mechanism, you have everything you want!!!
Version 2.0 de tapdata, Open Source Live Data Platform est maintenant disponible
QT--创建QT程序
【目标跟踪】|DiMP: Learning Discriminative Model Prediction for Tracking
How to fix the slip ring
Redux使用
Grey correlation analysis link (portal) matlab
Usage of xcolor color in latex
qt-使用自带的应用框架建立--hello world--使用min GW 32bit
The difference between distribution function and probability density function of random variables
子矩阵的和
正则表达式
生态 | 湖仓一体的优选:GBase 8a MPP + XEOS
如何让导电滑环信号更好
快速熟知XML解析
Is it safe to open an account on your mobile phone for small amount of stock speculation?