copyAddressClick(val) {
//参数val,是需要复制的内容
window.getSelection().removeAllRanges()
var input = document.createElement('input')
input.setAttribute('id', 'copyId')
input.value = val //复制的内容
document.querySelector('body').appendChild(input)
const range = document.createRange()
range.selectNode(document.getElementById('copyId'))
document.getElementById('copyId').style.position = 'absolute'
document.getElementById('copyId').style.left = -2000 + 'px'
const selection = window.getSelection()
if (selection.rangeCount > 0) selection.removeAllRanges()
selection.addRange(range)
document.execCommand('copy')
document.getElementById('copyId').remove()
}