在一些脚本中我可以找到例如
$timeout(function () { $scope.my = 1; });
而不是简单的
$scope.my = 1;
没有延迟地拨打$ timeout的目的是什么?
angularjs
angularjs ×1