javascript - How to listen to keyboard events in vue components? (not input)
PHP中文网
PHP中文网 2017-05-19 10:47:00
0
2
971

In addition to using window.addEventListener('keydown', callback)

Are there any other methods?

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
刘奇

Even if the keyboard event is bound, it needs to be triggered when the element is in focus.

我想大声告诉你

Link
Official mention, give it a try

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!