javascript - element-ui form problem
我想大声告诉你
我想大声告诉你 2017-05-19 10:14:28
0
1
608
<el-form :inline="true" @submit.prevent="seach_post"> 
        <el-form-item>
          <el-input v-model="data.seach" placeholder="搜索文章标题"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click.prevent="seach_post">搜索</el-button>
        </el-form-item>
        <el-form-item>
          <el-button @click.prevent="clearseach">重置</el-button>
        </el-form-item>
      </el-form>

Can the form be submitted using submit? Now the button can be clicked. . form submit is not possible

我想大声告诉你
我想大声告诉你

reply all(1)
洪涛

Get the data through model binding, and then use post to submit the data

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!