<input style="width: 68%;" maxlength="5" type="text" placeholder="请输入姓名" bindinput="nameInput"/>
nameInput: function (e) {
name = e.detail.value
},
<input style="width: 68%;" maxlength="5" type="text" placeholder="请输入姓名" bindinput="nameInput"/>
nameInput: function (e) {
name = e.detail.value
},
转载于:https://my.oschina.net/hehongbo/blog/832549