@submit获取不到form表单内容问题
需要给每个form表单里边的元素加上一个name
<form @submit="formSubmit"><input type="text" name="我是input" value="" /><input type="text" placeholder="我是input" name="input1"/><checkbox-group name="我是多选框"><view class="">选项:view><label><checkbox value="A" /><text>Atext>label><label><checkbox value="B" /><text>Btext>label>checkbox-group><radio-group name="性别"><view class="">性别:view><label><radio :value="a" /><text>男text><radio :value="b" /><text>女text>label>radio-group><button form-type="submit">Submitbutton>form>
数据如下:
