阅读背景:

element-ui 注册keyup事件,即键盘enter.

来源:互联网 
<template>
   <!-- 需求:keyup事件一般用在input中,在input框中输入内容,用户点击键盘的enter,执行搜索 -->
    <div class="demo">
        <el-input placeholder="input框注册enter事件" v-model="demoEnter" @keyup.enter.native="openEnter"></el-input>
    </div>
</template>
<script><template>
   <!-- 需求:keyup事件一般用在input中,在in



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: