当前位置:网站首页>uniapp一键复制功能效果demo(整理)
uniapp一键复制功能效果demo(整理)
2022-07-08 00:05:00 【我是开心呀】
<template>
<view>
<view @click="copy('2022093987615371')"></view>
</view>
</template>
<script>
methods:{
copy(value) {
//提示模板
uni.showModal({
content: value, //模板中提示的内容
confirmText: '复制内容',
success: () => {
//点击复制内容的后调函数
//uni.setClipboardData方法就是讲内容复制到粘贴板
uni.setClipboardData({
data: value, //要被复制的内容
success: () => {
//复制成功的回调函数
uni.showToast({
//提示
title: '复制成功'
})
}
});
}
});
},
}
</script>
边栏推荐
- 2022 high altitude installation, maintenance and demolition examination materials and high altitude installation, maintenance and demolition operation certificate examination
- ANSI / nema- mw- 1000-2020 magnetic iron wire standard Latest original
- QT--创建QT程序
- qt--将程序打包--不要安装qt-可以直接运行
- How does Matplotlib and PIL image integrate and save multiple pictures into one picture
- 2022 chemical automation control instrument examination summary and chemical automation control instrument simulation examination questions
- ROS problems (topic types do not match, topic datatype/md5sum not match, MSG XXX have changed. rerun cmake)
- About snake equation (3)
- break net
- Understanding of expectation, variance, covariance and correlation coefficient
猜你喜欢
2022 safety officer-c certificate examination paper and safety officer-c certificate simulated examination question bank
图解网络:揭开TCP四次挥手背后的原理,结合男女朋友分手的例子,通俗易懂
COMSOL - Construction of micro resistance beam model - final temperature distribution and deformation - establishment of geometric model
2021 tea master (primary) examination materials and tea master (primary) simulation test questions
Understanding of prior probability, posterior probability and Bayesian formula
qt-使用自带的应用框架建立--hello world--使用min GW 32bit
云原生应用开发之 gRPC 入门
QT build with built-in application framework -- Hello World -- use min GW 32bit
Different methods for setting headers of different pages in word (the same for footer and page number)
Chapter 7 behavior level modeling
随机推荐
Gnuradio operation error: error thread [thread per block [12]: < block OFDM_ cyclic_ prefixer(8)>]: Buffer too small
2022 high altitude installation, maintenance and demolition examination materials and high altitude installation, maintenance and demolition operation certificate examination
碳刷滑环在发电机中的作用
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
break net
[loss function] entropy / relative entropy / cross entropy
Frequency probability and Bayesian probability
2022 R1 fast opening pressure vessel operation test question bank and R1 fast opening pressure vessel operation free test questions
About snake equation (5)
Blue Bridge Cup embedded (F103) -1 STM32 clock operation and led operation method
滑环在直驱电机转子的应用领域
Gnuradio 3.9 using OOT custom module problem record
如果时间是条河
QT build with built-in application framework -- Hello World -- use min GW 32bit
NPDP在国内有认可度吗?看一看就明白了!
After modifying the background of jupyter notebook and adding jupyterthemes, enter 'JT -l' and the error 'JT' is not an internal or external command, nor a runnable program
4. Strategic Learning
The persistence mode of redis - RDB and AOF persistence mechanisms
Common operations of numpy on two-dimensional array
城市土地利用分布数据/城市功能区划分布数据/城市poi感兴趣点/植被类型分布