收藏
回答

用户点击下一个输入框,自动对刚刚输入内容进行检测?

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

回答关注问题邀请回答
收藏

1 个回答

  • brave
    brave
    2020-09-12
    <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输入框失焦时判断呢
    
    2020-09-12
    有用 1
    回复
登录 后发表内容
问题标签