微信小程序消息推送,前端操作
作者:互联网
<form bindsubmit="getFormId" report-submit="true"> <button form-type="submit"> 立即预约 </button> </form>
form_submit: function (e) { console.log(e) if (e.detail.formId === 'the formId is a mock one') { return } else { let data = { formId: e.detail.formId } 调用后台接口 } }
标签:console,log,微信,前端,detail,submit,formId,推送,mock 来源: https://www.cnblogs.com/wanf/p/10955081.html