copy() {
var oInput = document.createElement('input');
oInput.value = '需要复制的信息';
document.body.appendChild(oInput);
oInput.select();
document.execCommand('Copy');
document.body.removeChild(oInput);
alert("复制成功");
}
copy() {
var oInput = document.createElement('input');
oInput.value = '需要复制的信息';
document.body.appendChild(oInput);
oInput.select();
document.execCommand('Copy');
document.body.removeChild(oInput);
alert("复制成功");
}