当前位置:   article > 正文

angular实现input输入监听_angular 监听input

angular 监听input

最近做用户注册登录时,需要监控用户的输入以此来给用户提示,用到了angular的$watch功能,以下是例子:
jsp:

<form class="register ng-scope" ng-app="regist_app" onsubmit="registSumbitValid()" ng-controller="regist_control">

    <div class="item">
        <input id="username" name="username" placeholder="请填写11位手机号码" class="input-item" ng-model="username" >
        <span class="warnning">{
   {
   username
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/222951
推荐阅读
相关标签
  

闽ICP备14008679号