elementUI中form表单提交的坑

106 阅读1分钟

原生button写在form里边时,button会提交数据并重新加载。如果不想让页面重新加载,解决方法:在button标签中加入属性type="button"。

用el-button则没有这个问题

blog.csdn.net/DZY_12/arti…