将内容复制到剪贴板的两种实现方法。 document.execCommand(‘copy’) function copyToClipboard(text) { const save = function (e) { e.clipboardData.setData('text/plain