标签:com value http only tee asc net OLE read
copyText() {
const input = document.createElement("input");
input.setAttribute("readonly", "readonly");
input.setAttribute("value", "hello world");
document.body.appendChild(input);
input.setSelectionRange(0, 9999);
if (document.execCommand("copy")) {
document.execCommand("copy");
console.log("复制成功");
}
document.body.removeChild(input);
}
链接:https://www.jb51.net/article/135605.htm
标签:com value http only tee asc net OLE read
原文地址:https://www.cnblogs.com/cnloop/p/10135928.html