//.wxml
javascript
<van-field
model:value="{{ userName }}"
placeholder="请输入学号"
focus="{{focusUserName}}"
/>
// .js
javascript
this.setData({
focusUserName: true
});