将内容复制到剪切板
function textToClickboard(text){
let input = document.createElement("textarea");
document.body.appendChild(input);
input.value = text;
input.select();
input.exeCommand("copy");
document.body.removeChild(input);
}
将内容复制到剪切板
function textToClickboard(text){
let input = document.createElement("textarea");
document.body.appendChild(input);
input.value = text;
input.select();
input.exeCommand("copy");
document.body.removeChild(input);
}