微信小程序> 小程序form表单的提交-小程序收集表为什么提交不了-小程序表单制作

小程序form表单的提交-小程序收集表为什么提交不了-小程序表单制作

浏览量:2500 时间: 来源:我的哥哥呦

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/form

2.JS:

Page({formSubmit:function(e){console.log('form发生了submit事件,携带数据为:',e.detail.value)},formReset:function(){console.log('form发生了reset事件')}})

版权声明

即速应用倡导尊重与保护知识产权。如发现本站文章存在版权问题,烦请提供版权疑问、身份证明、版权证明、联系方式等发邮件至197452366@qq.com ,我们将及时处理。本站文章仅作分享交流用途,作者观点不等同于即速应用观点。用户与作者的任何交易与本站无关,请知悉。

  • 头条
  • 搜狐
  • 微博
  • 百家
  • 一点资讯
  • 知乎