如elementUI的:
<el-input v-model="QueryText" placeholder="可输入如ab34"
id="QueryText" v-on:keyup.exact.enter="sadfsaL()">
</el-input>
这样的keyup是不起作用的,需要用到.native修饰符
正确例子:
<el-input v-model="QueryText" placeholder="可输入如ab34"
id="QueryText" v-on:keyup.native.exact.enter="sadfsaL()">
</el-input>
想看更多的博客,请到该 博客原文:https://www.cnblogs.com/blogwxb/p/13047708.html