- 1个form表单中存在2个textarea时,会阻塞submit事件的触发
1个form表单中存在2个textarea时,同时输入文本后点击提交的时候会阻塞submit事件的触发 请查看demo示例 [代码]<!--index.wxml-->[代码][代码]<[代码][代码]form[代码] [代码]bindsubmit[代码][代码]=[代码][代码]"bindFormSubmit"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]textarea[代码] [代码]placeholder[代码][代码]=[代码][代码]"form 中的 textarea1"[代码] [代码]name[代码][代码]=[代码][代码]"textarea1"[代码] [代码]value[代码][代码]=[代码][代码]''[代码][代码]/>[代码][代码] [代码][代码]<[代码][代码]textarea[代码] [代码]placeholder[代码][代码]=[代码][代码]"form 中的 textarea2"[代码] [代码]name[代码][代码]=[代码][代码]"textarea2"[代码] [代码]value[代码][代码]=[代码][代码]''[代码][代码]/>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]form-type[代码][代码]=[代码][代码]"submit"[代码][代码]> 提交 </[代码][代码]button[代码][代码]>[代码][代码]</[代码][代码]form[代码][代码]>[代码][代码]//index.js[代码][代码]const app = getApp()[代码] [代码]Page({[代码][代码] [代码][代码]data: {[代码][代码] [代码] [代码] [代码][代码]},[代码][代码] [代码][代码]onLoad: [代码][代码]function[代码] [代码]() {[代码][代码] [代码] [代码] [代码][代码]},[代码][代码] [代码][代码]bindFormSubmit: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'成功'[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'success'[代码][代码],[代码][代码] [代码][代码]duration: 2000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码]})[代码]
2018-04-11 - 小程序登录,服务端解密有几率-41003
参数传递都正常,有概率登录失败,此时服务端解密报错-41003
2018-03-29