Vue实现Enter键查询
单个条件:@keyup.enter.native="CurrentChange(1)"@submit.native.prevent多个条件:创建时监听:window.addEventListener('keydown',this.handleKeyDown,true);//开启键盘监听模式触发: handleKeyDown(e){ let key = null; if(window.event === undefined){ key =