剪切板事件
const oInput = document.createElement('input');
oInput.value = tel;
document.body.appendChild(oInput);
oInput.select();
document.execCommand('copy');
oInput.remove(); // 移除键盘
标签:剪切板,body,appendChild,移除,js,事件,oInput,document
来源: https://blog.csdn.net/qq_45393395/article/details/121809858