|
|
|
@ -527,9 +527,10 @@ const selection = { |
|
|
|
// }, 10);
|
|
|
|
|
|
|
|
var oInput = document.createElement('input'); |
|
|
|
oInput.setAttribute('readonly', 'readonly'); |
|
|
|
oInput.value = cpdata; |
|
|
|
document.body.appendChild(oInput); |
|
|
|
oInput.select(); // 选择对象
|
|
|
|
oInput.setSelectionRange(0, cpdata.length); |
|
|
|
document.execCommand("Copy"); |
|
|
|
oInput.style.display='none'; |
|
|
|
document.body.removeChild(oInput); |
|
|
|
|