this.$loading
时间: 2023-09-29 14:03:41 浏览: 94
this.$loading是Vue中的一个全局方法。如果在Vue中完整引入了Element UI框架,那么Vue.prototype上会有一个名为$loading的方法。该方法可以在前端发起异步请求时显示一个加载动画,提高用户体验。调用方式为this.$loading(),同时也可以通过this.$loading().close()来关闭加载动画。在具体使用时,可以在向后台发起请求之前调用this.$loading()来显示加载动画,在请求结束后调用this.$loading().close()来关闭加载动画,以提供更好的用户反馈。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [vue中使用this.$loading()给整个页面添加遮罩](https://blog.csdn.net/weixin_43258184/article/details/123275224)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [029_Loading加载](https://blog.csdn.net/aihiao/article/details/123168254)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文