Deep analysis of common request method aliases of Axios
The following editor will share a common alias of Axios's request method, which is very comprehensive and detailed, and has a certain reference value. For those who need it, please refer to it for learning. If there are any shortcomings, we welcome criticism and correction.
Axios
Is a promise based HTTP library that can be used in browsers ...
Posted by turpentyne on Sun, 01 Dec 2019 01:33:07 -0800
Solve the asynchronous communication between vue and axios
In a project, it is often necessary to get data content from the back end. Especially when the front end and the back end are separated, the front end is deployed in an engineering way, and cross domain request becomes a necessary skill point of the front end. Fortunately, there are many solutions.
In vue, currently, axios is widely used for cr ...
Posted by decodv on Wed, 27 Nov 2019 07:09:09 -0800
Mobile page example project: Vue mobile demo
Today, I uploaded the Demo I made in these two days to github and generated a sample project: Vue mobile Demo. I hope it can help the novice.
Let's briefly introduce the content of this project
Basic situation
This project is based on the van demo project, which adds many practical functions, involving Vue + van T + Axios + mockjs, ...
Posted by thetechgeek on Sat, 23 Nov 2019 09:41:16 -0800
Front End Performance and Exception Monitoring
More articles
Preface
These days, there has been a lot of excitement to learn about front-end monitoring, but after looking at a lot of data, I found that there are no detailed articles about front-end monitoring, they are all about general, on the contrary, there are many existing front-end monitoring tools.
In order to learn more about the te ...
Posted by talltorp on Fri, 15 Nov 2019 21:07:58 -0800
Vue development summary and some best practices (Updated)
Basic development environment
Project created by vue-cli3, vscode as a coding toolvscode plug-in recommendations: vscode plug in configuration
Article directory
Introduction to project directory structure
UI framework selection
main,js processing
Axis request secondary encapsulation
1. Project directory structure
├── public // index.html
├── ...
Posted by anser316 on Sun, 10 Nov 2019 08:40:09 -0800
axios interceptor + default parameter configuration + custom header settings + unified error handling
axios interceptor + default parameter configuration + custom header settings + unified error handling
This configuration file can fulfill simple project requirements, and the specific configuration depends on the project. It mainly includes:
axios interceptor
Default parameter configuration
Custom header settings
Un ...
Posted by mie on Fri, 08 Nov 2019 12:21:09 -0800
axios solves cross-domain problems (Vue3.0)
1. What is cross-domain
1. Cross-domain
Refers to the fact that the browser cannot execute scripts from other websites.It is caused by the browser's homology policy and is a security restriction imposed by the browser on javascript.
2. Homology Policy
The term refers to protocols, domain names, and ports that all have the same. One of these dif ...
Posted by mastercjb on Thu, 07 Nov 2019 05:43:45 -0800
vue reads the local excel file and displays it on the web page
I want to read a local xlsx file (task list. Xlsx) and display it on the web page. At first, I choose to build an express server by sending an axios request, but I think it's too complicated to make a server just to read a local file. At last, I read the local file through the "xlsx" module + axios, without the back-end. The steps are ...
Posted by MrLister on Sun, 03 Nov 2019 10:44:28 -0800
2019-5-29 open source cache Promise,Ajax data cache function encapsulation, and upload to github
In order to optimize the front-end interface calls, we may need to limit the frequency of accessing the background. In our project, we use some technologies at will. After the invalid data is accessed remotely for the first time, the data is stored in memory (closure Implementation),
###Two directions of optimization are limited, ...
Posted by ehhwan on Sun, 03 Nov 2019 02:05:11 -0800
How to call mock data in Umi
Official website
According to the official website, you can download it by executing yar create umi or npm create umi.
After that, select: the space is select enter is OK
Select project = > select app
Choose whether to use TypeScript.
Then, select the function you need = = > antd + DVA
OK, the bas ...
Posted by secret007 on Fri, 01 Nov 2019 20:58:52 -0700