js复制文字
selectText(name) {
let text = name;
let oInput = document.createElement('input');
oInput.value = text;
document.body.appendChild(oInput);
oInput.select(); // 选择对象;
console.log(oInput.value);
document.execCommand("Copy"); // 执行浏览器复制命令
this.$toast('复制成功');
oInput.remove();
}