wxml:
使用 bindinput
<input class='username' placeholder="用户名" bindinput="username"></input>
js:
Page({
data: {
voteTitle: null,
},
username: function(e){
this.data.username = e.detail.value;
},
}
wxml:
使用 bindinput
<input class='username' placeholder="用户名" bindinput="username"></input>
js:
Page({
data: {
voteTitle: null,
},
username: function(e){
this.data.username = e.detail.value;
},
}