1.使用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;}
2.使用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;
}