package.json
"vue-clipboard2": "^0.3.0",
main.js
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)
*.vue
this.$copyText(this.xxx).then(() => Toast.info('xxx已复制'))
"vue-clipboard2": "^0.3.0",
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)
this.$copyText(this.xxx).then(() => Toast.info('xxx已复制'))
本文标题:复制到粘贴板
本文链接:https://www.haomeiwen.com/subject/nqtdcctx.html
网友评论