//自定义全局按键修饰符 Vue.config.keyCodes.f2 = 13;//enter为13此时F2==ENTER 调用;@keyup.f2='addData()' 转载于:https://www.cnblogs.com/qiyc/p/10398600.html