我是Angularjs的新手,我正在尝试在Controller中的值发生变化时更新进度条的宽度。我有这样的东西:${{getTotal()}}({{getPercentage()}}%)10%Complete(warning)我的Controller中有类似的东西:$scope.total=254.78;$scope.threshold=15000;$scope.getPercentage=function(){return(($scope.total*100)/$scope.threshold).toFixed(2);}$scope.getTotal=function(){retur
我是Angularjs的新手,我正在尝试在Controller中的值发生变化时更新进度条的宽度。我有这样的东西:${{getTotal()}}({{getPercentage()}}%)10%Complete(warning)我的Controller中有类似的东西:$scope.total=254.78;$scope.threshold=15000;$scope.getPercentage=function(){return(($scope.total*100)/$scope.threshold).toFixed(2);}$scope.getTotal=function(){retur