Score
0
4 Unstar Star 15 Fork 1

Dream552b / uni-copyJavaScript

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
uni-app复制文本插件 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

uni-app三端复制插件

uni-app的复制插件,复制字符串到剪贴板,兼容三端 小程序、App、H5,试过所有三端复制插件,这个是兼容性最好的,如有不兼容的情况,请留言

使用方法

// 引入文件
 import uniCopy from '@/js_sdk/xb-copy/uni-copy.js'
 
 export default {
 
 	methods: {
		// 触发方法
		copy() {
			uniCopy({
				content:'uni复制插件',
				success:(res)=>{
					uni.showToast({
						title: res,
						icon: 'none'
					})
				},
				error:(e)=>{
					uni.showToast({
						title: e,
						icon: 'none',
						duration:3000,
					})
				}
			})
		}
 	}
 }

Comments ( 0 )

Sign in for post a comment

JavaScript
1
https://gitee.com/bin552/uni-copy.git
git@gitee.com:bin552/uni-copy.git
bin552
uni-copy
uni-copy
master

Search

131423 f1aaba0b 1899542 094922 1c74bed3 1899542