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 }) } }) |