用户点击下一个输入框,自动对刚刚输入内容进行检测?
发布于 4 年前 作者 leitian 6982 次浏览 来自 官方Issues

如何实现?或者说实时监测。谢谢!

1 回复
<input id="name" bindFocus="handleFocus" bindInput="handleInput" />
<input password id="password" bindFocus="handleFocus" bindInput="handleInput" />

handleFocus (e) {
  if (e.currentTarget.id == "password") {
    this.checkName();
  }
}

// 其实为什么不用bindblur输入框失焦时判断呢
回到顶部