vue点击复制文本粘贴
<template>
<ul>
<li> <input type="text" class="inpNone" v-model="wx" disabled></span><span class="btn" @click="doCopy1">复制</span></li>
</ul>
</template>
export default{
data(){
return(){
wx:'Wx123456',
}
},
methods:{
doCopy1:function(val){
this.$copyText(this.wx).then(function(e){
console.log(e) //浏览器查看复制成功的内容即‘Wx123456’或者ctrl + v
},function(e){
console.log(e)
})
},
}
}