van-button怎么加form-type
<form bindsubmit="formSubmit" bindreset="formReset"> <van-field name="title" value="{{ value }}" label="标题" placeholder="标题" border="true" /> <van-button type="info" size="small" form-type="submit">提交</van-button> </form>
<form bindsubmit="formSubmit" bindreset="formReset"> <van-field name="title" value="{{ value }}" label="标题" placeholder="标题" border="true" /> <van-button type="info" size="small" form-type="submit">提交</van-button> </form>
2019-09-23
vant-button是封装的现成的组件,并不是原生的,所以我们只能按照文档中增加支持的属性:
https://youzan.github.io/vant-weapp/#/button
现在项目都是ajax了,表单提交不多了。
举报