欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

微信小程序 提交表单

程序员文章站 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 )
},
相关标签: 微信小程序