Skip to content

[vue] vue中是如何使用event对象的? #420

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

[vue] vue中是如何使用event对象的?

Activity

wenyejie

wenyejie commented on Jun 27, 2019

@wenyejie

你说的是, 事件event?

haizhilin2013

haizhilin2013 commented on Jun 27, 2019

@haizhilin2013
CollaboratorAuthor

@wenyejie 事件的event对象

slmyer

slmyer commented on Jun 27, 2019

@slmyer

就是事件: @click='handleClick($events)'

ccllff

ccllff commented on Jul 4, 2019

@ccllff

原来如此= =

zejunking

zejunking commented on Aug 15, 2019

@zejunking

@click=“func” 默认第一个参数传入event对象
@click="func(0, $event)" 如果自己需要传入参数和event对象,则需要使用$event来获取event对象并传入func

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @wenyejie@haizhilin2013@zejunking@ccllff@slmyer

        Issue actions

          [vue] vue中是如何使用event对象的? · Issue #420 · haizlin/fe-interview