el-input绑失去焦点事件
时间: 2023-10-07 18:13:37 浏览: 134
el-input绑定失去焦点事件的方法是使用blur事件。在el-input组件中,blur事件会在输入框失去焦点时触发。可以通过给el-input添加@blur属性来绑定失去焦点事件的处理函数。例如:
```html
<el-input @blur="handleBlur"></el-input>
```
在这个例子中,当el-input输入框失去焦点时,会调用名为handleBlur的方法来处理失去焦点事件。你可以在这个方法中编写你需要的逻辑。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [el-input-number 失去焦点blur事件,](https://blog.csdn.net/qq_52125118/article/details/130085867)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [快速解决js开发下拉框中blur与click冲突](https://download.csdn.net/download/weixin_38622125/13150619)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文