摘要:
在Angulajs的control中,不能利用 window.setInterval和 setTimeout 来操作定时器,因为这样做,虽然设置定时器会成功,但对$scope中的数据进行设置时,不会自动导致页面数据刷新。 要想数据刷新生效。 需要利用 Angulajs 自带的服务 $Interval 阅读全文
posted @ 2016-11-08 18:22
51kata
阅读(292)
评论(0)
推荐(0)
摘要:
当在一个controller中 通过设置$scope的数据,来影响其它control的范围时,可以使用$rootScope 举个例子: 在一个control A范围内设置 mainApp.controller('menuController', function($scope,$rootScope) 阅读全文
posted @ 2016-11-05 12:07
51kata
阅读(373)
评论(0)
推荐(0)
摘要:
当使用bootstrap的如下input时 <input type="email" ng-model="userid"> 如果输入的内容是无效的email格式,这时 ng-model 将无效。但当输入的格式有效时,则ng-model 有效。 如果是<input type="text"> ,则没有这种 阅读全文
posted @ 2016-11-05 11:58
51kata
阅读(888)
评论(0)
推荐(0)
浙公网安备 33010602011771号