Angular 怎么在加载中加入 Loading 提示框

2025-05-14 18:16:41
推荐回答(1个)
回答1:

0、提供一种用过(也许已不是最佳)的思路: 0.1、最外层的 index.html 放个内容为 "Loading..." 的 div;通过最外层 controller 的 $scope.busy 变量,使用 ng-show 控制是否显示; 0.2、需要显示 Loading 时,冒泡 BUSY 事件;最外层 controll...