当前位置:网站首页>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>
边栏推荐
猜你喜欢
QT--创建QT程序
Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
保姆级教程:Azkaban执行jar包(带测试样例及结果)
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
Urban land use distribution data / urban functional zoning distribution data / urban POI points of interest / vegetation type distribution
Android 创建的sqlite3数据存放位置
MySQL查询为什么没走索引?这篇文章带你全面解析
3、多智能体强化学习
ANSI / nema- mw- 1000-2020 magnetic iron wire standard Latest original
Redis cluster
随机推荐
不算不知道,花呗分期的真实利率居然这么高
城市土地利用分布数据/城市功能区划分布数据/城市poi感兴趣点/植被类型分布
快手小程序担保支付php源码封装
common commands
Graphic network: uncover the principle behind TCP's four waves, combined with the example of boyfriend and girlfriend breaking up, which is easy to understand
Deep learning website
Understanding of prior probability, posterior probability and Bayesian formula
Application of slip ring in direct drive motor rotor
QT--创建QT程序
Version 2.0 de tapdata, Open Source Live Data Platform est maintenant disponible
mysql/mariadb怎样生成core文件
Working principle of stm32gpio port
body有8px的神秘边距
Different methods for setting headers of different pages in word (the same for footer and page number)
About snake equation (3)
QT -- package the program -- don't install qt- you can run it directly
The foreach map in JS cannot jump out of the loop problem and whether foreach will modify the original array
ArrayList源码深度剖析,从最基本的扩容原理,到魔幻的迭代器和fast-fail机制,你想要的这都有!!!
QML fonts use pixelsize to adapt to the interface
Matlab code on error analysis (MAE, MAPE, RMSE)