vue實現復制功能
copy () {
var _input = document.createElement("input"); // 直接構建input
_input.value = this.egc_token; // 設置內容
document.body.appendChild(_input); // 添加臨時實例
_input.select(); // 選擇實例內容
document.execCommand("Copy"); // 執行復制
alert('復制成功')
document.body.removeChild(_input); // 刪除臨時實例
}