## 复制功能
1.npm i copy-to-clipboard
2.import copy from 'copy-to-clipboard'
3.const handleCopy=(value)=>{
if(copy(value)){
alert('复制成功')
}else{
alert('复制失败')
}
}
## 将dom内容导出为图片
1.npm i dom-to-image
2.import domtoimage from 'dom-to-image'
3.const getImg=()=>{
const node = document.getElementById('id名');
//转为png格式
domtoimage.toPng(node,{width:2360,height:1640}).then(function (dataUrl){
const link = document.createElment('a');
link.href=dataUrl;
link.download='export.png';
link.click();
}).catch(function (error){
console.log(error)
})
}