vue 复制链接

import Clipboard from ‘clipboard’
copyUrl() {
const that = this;
let code2 = this.formCode.link
console.log(‘code2’, code2)
let clipboard = new Clipboard(‘.tag-read’, {
text: function () {
return code2
}
});
clipboard.on(‘success’, e => {
that.KaTeX parse error: Expected 'EOF', got '}' at position 123: … // 释放内存 }̲) clipboa…message({
message: ‘该浏览器不支持链接复制!’,
type: ‘warning’
});
clipboard.destroy() // 释放内存
})
},

你可能感兴趣的:(vue.js,javascript,前端)