很久以前看到过这篇文章:https://coderwall.com/p/ngisma它描述了一种方法,如果我们不在应用或摘要阶段,就会触发$apply。$scope.safeApply=function(fn){varphase=this.$root.$$phase;if(phase=='$apply'||phase=='$digest'){if(fn&&(typeof(fn)==='function')){fn();}}else{this.$apply(fn);}};Angular有$scope.$evalAsync方法(取自1.2.14):$evalAsync:function(e