按键修饰符 //按键修饰符 Vue.config.keyCodes.huiche=13; <div>模糊搜索:<input type="text" v-model="words" @keyup.huiche="search()"></div>