正如上面提到的Ajay beniwal一样,您需要使用Apply来开始消化。
var app = angular.module('test', []);app.controller('TestCtrl', function ($scope) { $scope.testValue = 0; setInterval(function() { console.log($scope.testValue++); $scope.$apply() }, 500);});


