var _that = this;
const input = document.createElement("input");
document.body.appendChild(input);
input.setAttribute("value", this.sharelist.url);
input.select();
if (document.execCommand("copy")) {
document.execCommand("copy");
this.$message({
message: "复制成功",
type: "success",
});
}
document.body.removeChild(input);
js 点击复制
于 2024-01-09 10:58:30 首次发布