Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.3k views
in Technique[技术] by (71.8m points)

vue 中怎么获取原生事件对象?

比如说click 事件,原生事件里还包括鼠标的 x , y 信息等,怎么能在 vue 组件的 method 方法中获取到这个原生事件。

如果组件是别人的,如果不改代码我是不是就没办法拿到原生事件了。

图片描述

element ui 是全局使用的,我只能再拷一份改?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

clipboard.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...