Trigger an event such as clicking F2
<input type="button" name="" id="" value="添加" @keyup.f2="add" />
Custom global key modifier
Vue.config.keyCodes.f2 =113
Other custom buttons Similarly, just need to find their own digital coding.
<input type="button" name="" id="" value="添加" @keyup.f2="add" />
Vue.config.keyCodes.f2 =113
Other custom buttons Similarly, just need to find their own digital coding.