AngularJS 怎么在发送http请求的时候出现正在加载中的标识

2025-03-10 00:37:36
推荐回答(2个)
回答1:

var module = angular.module('testApp', [])
.controller('myC',function(){
$scope.ta = [1,2,3,4,5,6];

})
.directive('onFinishRender', function () {
return {
restrict: 'A',
link: function (scope, element, attr) {
if (scope.$last === true) {
element.ready(function () {
$("#r_img").remove();
});
}
}
}
});

1
2
3
4



{{

回答2:

建议你使用angularjs 插件 angularjs-spinner