网友回复
brave:
<input focus="{{focusId == 1}}" />
<input focus="{{focusId == 2}}" />
<input focus="{{focusId == 3}}" />
<button bindtap="onClick">按钮</button>
onClick() {
if (...) {
this.setData({
focusId: 1
})
} else if ...
}