[vue] vue中是如何使用event对象的?
@click=“func” 默认第一个参数传入event对象 @click="func(0, $event)" 如果自己需要传入参数和event对象,则需要使用$event来获取event对象并传入func
你说的是, 事件event?
event
@wenyejie 事件的event对象
就是事件: @click='handleClick($events)'
原来如此= =
Most helpful comment
@click=“func” 默认第一个参数传入event对象
@click="func(0, $event)" 如果自己需要传入参数和event对象,则需要使用$event来获取event对象并传入func