微信小程序 提交表单
程序员文章站
2022-04-04 20:46:18
...
wxml
<form bindsubmit='res'>
<van-field
id="vipAccount"
name="vipAccount"
required clearable left
label="会员号"
title-width="3.2em"
bind:click-icon="onClickIcon"
custom-style="width:472rpx;float:left;padding-right:20rpx" />
</form>
js
res: function (e) {
console.log(666);
vipAccount = e.detail.value.vipAccount
console.log(vipAccount )
},
上一篇: 关于php mysqli函数的总结与详细介绍(二)
下一篇: 微信小程序之表单提交