前端页面:
<div >
<button @click="handlerClick($event.target.innerText)">点我</button>
</div>
method:
handlerClick(val) {
console.log(val);
}
前端页面:
<div >
<button @click="handlerClick($event.target.innerText)">点我</button>
</div>
method:
handlerClick(val) {
console.log(val);
}