N
N
Nikolay Semenov2017-08-29 07:08:16
JavaScript
Nikolay Semenov, 2017-08-29 07:08:16

How to determine where the click happened in vue?

Hello.
Tell me how to determine the click target in the view?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Khokhlov, 2017-08-29
@nickola105

<button type="button" @click="handler"></button>

handler(e) {
  console.log(e.target);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question