赞
踩
<div id="father" @click="handleHtml($event)">
<div id="vhtml" v-html="content" />
</div>
handleHtml($event) {
console.log($event)
console.log($event.target)
console.log($event.target.className)
console.log($event.target.innerHTML)
console.log($event.target.innerText)
// if ($event.target.className === 's14' && $event.target.innerText) {
// this.$router.push({
// path: '',
// query: {
// imgs: $event.target.innerText
// }
// })
// }
}
mounted() {
this.$nextTick(() => {
setTimeout(() => {
console.log(document.querySelector('#report1 .s14'))
console.log(123131231323123)
console.log(document.getElementById('report1'))
}, 1000)
})
},
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。