小程序form表单的提交-小程序收集表为什么提交不了-小程序表单制作
1.HTML:
formbindsubmit="formSubmit"bindreset="formReset"viewclass="sectionsection_gap"viewclass="section__title"switch/viewswitchname="switch"//viewviewclass="sectionsection_gap"viewclass="section__title"slider/viewslidername="slider"show-value/slider/viewviewclass="section"viewclass="section__title"input/viewinputname="input"placeholder="pleaseinputhere"//viewviewclass="sectionsection_gap"viewclass="section__title"radio/viewradio-groupname="radio-group"labelradiovalue="radio1"/radio1/labellabelradiovalue="radio2"/radio2/label/radio-group/viewviewclass="sectionsection_gap"viewclass="section__title"checkbox/viewcheckbox-groupname="checkbox"labelcheckboxvalue="checkbox1"/checkbox1/labellabelcheckboxvalue="checkbox2"/checkbox2/label/checkbox-group/viewviewclass="btn-area"buttonformType="submit"Submit/buttonbuttonformType="reset"Reset/button/view/form2.JS:
Page({formSubmit:function(e){console.log('form发生了submit事件,携带数据为:',e.detail.value)},formReset:function(){console.log('form发生了reset事件')}})声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

