< form
class
"page__bd"
bindsubmit
"formSubmit"
bindreset
"formReset" > < button
form-type
"submit" > Submit提交 button > < button
form-type
"reset" > Reset重置 button > form > //表单提交按钮 formSubmit: function (e) { console.log('form发生了submit事件,携带数据为:', e.detail.value) this.setData({ allValue: e.detail.value }) }, //表单重置按钮 formReset: function (e) { console.log('form发生了reset事件,携带数据为:', e.detail.value) this.setData({ allValue: '' }) },