<div @click="change('https://www.baidu.com/')" class="change">
跳转
</div>
methods:{
change (url){
var a = document.createElement('a')
a.setAttribute('href', url)
a.style = {
height: 0,
width: 0,
}
document.body.appendChild(a)
a.click()
console.log(234)
}
}