vue axios cdn地址
时间: 2023-08-31 21:10:20 浏览: 162
vue引入axios同源跨域问题
5星 · 资源好评率100%
Vue使用axios的CDN地址可以通过以下方式引入:
```html
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
```
这个CDN地址可以在HTML文件的`<head>`标签中添加,确保在引入Vue之前引入axios。这样就可以在Vue中使用axios进行HTTP请求了。\[2\]
#### 引用[.reference_title]
- *1* [vue-axios的安装及四个常见方法](https://blog.csdn.net/weixin_45736502/article/details/119652818)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Axios封装](https://blog.csdn.net/weixin_57844432/article/details/129611108)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文