1.$apply anjularjs通过$apply方法去执行脏检查,及时告诉model绑定变量更新。 示例:定义一个date变量显示在页面上,它的控制器是firstCtrl,这个date变量有一个时钟功能,每一秒变一次。 页面上: <div ng-controller="firstCtrl"> { Read More
posted @ 2016-04-18 16:51 博智星 Views(838) Comments(0) Diggs(0) Edit