在class为ipt1的input绑定focus事件,另外一个input也会触发这个focus,请问如何销毁?
<el-input class="ipt1" type="textarea" @focus="focusIpt()"></el-input> <el-input class="ipt2" type="textarea"></el-input><script> focusIpt(){ let enterEvent = function(e){ ... // do something } document.onkeydown = enterEvent } </script>
侃侃尔雅
宝慕林4294392
相关分类