copy(value) {
const inputEle = document.createElement("input");
inputEle.setAttribute("readonly", "readonly");
document.body.appendChild(inputEle);
inputEle.value = value;
inputEle.select();
const isOk = document.execCommand("Copy");
document.body.removeChild(inputEle);
this.$notify({
title: "复制成功",
position: "top-left",
});
},
点击进行复制文本
最新推荐文章于 2024-04-19 15:34:45 发布
关键词由CSDN通过智能技术生成