Request interceptors and response interceptors in Vue
Front
Hello everyone, I'm here again. Today we'll talk about what is a request interceptor and the role of a request interceptor. Well, I won't say anything superfluous. I'll start today's explanation right away
Here we go
request interceptor
The function of the request interceptor is to:
Some operations are performed before the ...
Posted by nick1 on Sat, 11 Sep 2021 18:22:28 -0700
Using Ajax to access background data
1, What is Ajax?
Asynchronous Javascript + XML (asynchronous JavaScript and XML) is not a new technology in itself, but a 'new' method to describe a collection of existing technologies.
2, How to access background data?
1. Create XMLHttpRequest ...
Posted by mac.php on Sat, 11 Sep 2021 15:31:26 -0700
Prototype and prototype chain (inheritance)
Prototype and prototype chain
Constructor Show Prototype Object===Implicit Prototype Object for Instance Object of Current Constructor
A prototype is an object. Its purpose is to provide objects with shared data to other objects.
A function object, either by itself or by object name()Way to execute the function.
A normal object is an ob ...
Posted by unmash on Fri, 10 Sep 2021 09:33:10 -0700
Applet ----------- call Gaode map weather api to get weather
1, Use the Gaud weather interface: The URL link is:
https://lbs.amap.com/api/webservice/guide/api/weatherinfo
(1) Register and get Key When you use, you need to register for Key, because it is Ali's company, you can use Alipay scan code registration. After registration, click apply key on the page shown in the figure:
Click "create new ...
Posted by madcrazy1 on Thu, 09 Sep 2021 21:07:40 -0700
Prototype and prototype chain most complete solution!
JS is an object-oriented programming language. The object-oriented in JS focuses on prototype and prototype chain knowledge.
Prototype is the foundation of javascript object-oriented system implementation. Creating objects in javascript is not based on 'classes', but through constructors and prototype chains.
JS is based on prototype chain in ...
Posted by Platinumweaver on Thu, 09 Sep 2021 15:23:39 -0700
Front end three swordsman related
Front end technology stack
HTML hypertext markup language realizes page presentation and forms a static web page
CSS cascading style sheets to achieve page beautification
JS javascript script language realizes the data interaction between the front end and back end of the page to form a dynamic web page
React facebook produces front-end and ...
Posted by chatmaster on Wed, 08 Sep 2021 14:39:28 -0700
Front end interview questions (execution context and execution context stack, scope and scope chain, closure, memory overflow and memory leak)
0. Execution context and execution context stack
0.1 variable promotion and function promotion
Variable promotion: this variable can be accessed before the variable definition statementFunction promotion: the function is executed before the function definition statementFirst the variable is promoted, then the function is promoted
0.2 how to ...
Posted by Ausx on Tue, 07 Sep 2021 21:24:46 -0700
[front end notes] v. getting to know VUE
1, Introduction
vue is a progressive framework for building user interfaces:
Build user interface: as the name suggests, it is the framework that can be used to write the interfaceProgressive: you can either transform a small part of a page or build a complex website from scratch
The core idea of vue framework is data driven: vue framework ...
Posted by Skawn on Tue, 07 Sep 2021 17:53:04 -0700
Learn the basics of webpack
1, Introduction to webpack
What is webpack
webpack is a front-end resource building tool and a static module packer
In webpack, all file resources in the front end (js/json/css/img/less) are treated as modules. It will perform static analysis according to the dependency of the module and package the corresponding static resources.
...
Posted by ShadowIce on Sun, 05 Sep 2021 16:14:54 -0700
① , jQuery, massive algorithm, high-frequency interview question compilation and analysis
Create a new jquery.min.js file in vs (any name here, as long as it is a JS file) Import in html file
<script src = "jquery.min.js"></script>
1.2. jQuery entry function 🔥
// The first method is recommended
$(function(){
... // This is the entrance to the completion of page DOM loading
})
// The second ...
Posted by bryan52803 on Sun, 05 Sep 2021 13:06:53 -0700