野生大熊猫

使用clipboard 直接复制
const clipboard = new ClipboardJS(e.t...
扫描右侧二维码阅读全文
08
2021/04

使用clipboard 直接复制

                    const clipboard = new ClipboardJS(e.target, {text: () => item.config.account})
                    clipboard.on('success', e => {
                        console.log("复制成功")
                        this.$dialog.alert({
                            title: '提示',
                            message: item.config.copy_msg,
                            theme: 'round-button',
                        }).then(() => {
                            dk.to(item.config.scheme)
                        });
                        clipboard.destroy()
                    })
                    clipboard.onClick(e)
Last modification:April 8th, 2021 at 11:48 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment