- Full-Stack Vue.js 2 and Laravel 5
- Anthony Gore
- 54字
- 2021-07-02 19:57:23
Escape key
Having a close button for our modal is handy, but most people's instinctual action for closing a window is theEscapekey.
v-onis Vue's mechanism for listening to events and seems like a good candidate for this job. Adding thekeyup argument will trigger a handler callback afteranykey is pressed while this input is focused:
<input v-on:keyup="handler">
推薦閱讀
- Objective-C Memory Management Essentials
- 算法基礎(chǔ):打開程序設(shè)計之門
- 精通Python自然語言處理
- Elasticsearch for Hadoop
- C程序設(shè)計實踐教程
- R用戶Python學(xué)習(xí)指南:數(shù)據(jù)科學(xué)方法
- Apache Solr PHP Integration
- Learning Unreal Engine Game Development
- Improving your Penetration Testing Skills
- Python人工智能項目實戰(zhàn)
- R語言與網(wǎng)站分析
- Implementing NetScaler VPX?(Second Edition)
- JavaScript Security
- 實戰(zhàn)圖解MACD波段交易技術(shù)
- Mastering Python Scientific Computing