vue-clipboards
vue-clipboards copied to clipboard
动态数据
<button v-clipboard="copyData" @click="copy">Copy</button>
Vue.use(VueClipboards);
new Vue({
data() {
return {
copyData: '110'
}
},
methods: {
copy() {
this.copyData = '120'
}
}
});
ctrl+v,是110还是120?