@submit.prevent
时间: 2023-09-07 09:16:07 浏览: 62
@submit.prevent是一个事件修饰符,用于阻止表单的默认提交行为。在引用\[1\]和引用\[2\]中,@submit.prevent被用于阻止表单的默认提交行为,从而可以自定义表单的提交行为。在引用\[3\]中,当表单中只有一个单行文本输入字段时,用户代理应该将Enter键视为提交表单的请求。
#### 引用[.reference_title]
- *1* [Vue阻止form表单的默认提交行为@submit.prevent](https://blog.csdn.net/qq_40685439/article/details/117749364)[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^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Element-UI el-form组件的@submit.native.prevent](https://blog.csdn.net/yuan_jlj/article/details/125808932)[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^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文