赞
踩
最近做用户注册登录时,需要监控用户的输入以此来给用户提示,用到了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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。