npm install xl_copy import clipboard form 'xl_copy' element.onclick = ()=>{ clipboard('test') // 复制 test }