使用detailConfirm: function(e)方式实现动态取值
实现相应的多个Confirm方式
{ var detail = e.detail.value;}realnameConfirm: function(e){ var realname = e.detail.value;}mobileConfirm: function(e)
{ var mobile = e.detail.value;}
使用form表单取值
实现方法如下:
<form bindsubmit="formSubmit"> <input name="detail" placeholder="详情地址" />
<input name="realname" placeholder="收件人姓名" />
<input name="mobile" placeholder="手机号码" type="number"/> <button formType="submit"
type="primary">Submit</button>
</form>
利用js取值
formSubmit: function(e) { // detail var detail = e.detail.value.detail;
// realname var realname = e.detail.value.realname;
// mobile var mobile = e.detail.value.mobile;
}