微信小程序获取formId
来源:互联网 发布:51单片机论坛hex 编辑:程序博客网 时间:2024/06/05 07:32
在pick中获取:获取方法:
这个e.detail.fromId,就是formid,真机才会产生,模拟器中为‘’the formId is a mock one‘’
<picker bindchange="sexPickerChange"value="{{indexSex}}"name="indexSex"range="{{arraySex}}"class="ui-width-70"><view style="color:{{coatLengthColor}}" class="ui-flex picker-select ui-padding-10"><view class="ui-width-100"><form bindsubmit="submitInfo" report-submit='true' ><button form-type="submit"><text>{{arraySex[indexSex]}}</text></button></form></view><imageclass="select-img"src="../../../image/select.png"></image></view></picker>在input中获取:
<form bindsubmit="submitInfo" report-submit='true' ><button form-type="submit"><view class="userName"><text>数据</text><input name="getNum"value="{{num}}"placeholder="请输入数据"class="username"/></view></button></form>
submitInfo: function (e) {console.log('GG 敌方军团已同意投降 4票赞成 0票反对')console.log(e.detail.formId);},
阅读全文
1 0
- 微信小程序获取formId
- 微信小程序获取formId
- 获取小程序模板消息的formId
- 微信小程序开发之formId使用(模板消息)
- 微信小程序开发之formId使用(模板消息)
- asp.net 根据页面获取formID
- 小程序模板消息无限制群发之formId
- formid问题的解决
- 微信小程序获取获取openid
- 微信小程序获取高度
- 【微信小程序】获取openid
- 微信小程序------获取地理位置
- 微信小程序 获取二维码
- 微信小程序获取下标
- 微信小程序获取openid
- 微信小程序:获取用户权限
- 微信小程序 如何获取时间
- 微信小程序--获取城市信息
- OpenCV3_C++_DetectFace()图像上脸部识别 实例
- Ubuntu16.04下安装caffe的方法(踩坑无数后的吐血总结)
- 使用echarts防止出现“There is a chart instance already initialized on the dom.”的警告
- js自定义validate验证:验证日期是否在某一范围内
- mysql REGEXP 正则的实现两个字符串组的匹配(实现数据库字符串匹配查询)
- 微信小程序获取formId
- poj2446(二分匹配)
- Ubuntu16.04安装chrome浏览器
- Go语言进行web开发(二) Go中的Socket编程
- 《代码的未来(松本行弘)》读书笔记:
- OpenCV3_C++_DetectEye()图像眼睛识别 实例
- plotly 笔记
- A
- NOIP2017(值得祭奠)提高组初赛记