const el = document.createElement("input");
el.setAttribute("value", this.remark);
document.body.appendChild(el);
el.select();
document.execCommand("copy");
document.body.removeChild(el);
js简单的复制功能
最新推荐文章于 2024-08-14 15:45:18 发布
const el = document.createElement("input");
el.setAttribute("value", this.remark);
document.body.appendChild(el);
el.select();
document.execCommand("copy");
document.body.removeChild(el);