Js uses native AjaxGet request POST request Vue uses AXIos request install uses unwrapped Request in main.js To mount axios methods on vue's prototype, global...
So in javascript, there's synchronous code, and asynchronous code, and as the name suggests, synchronous code, which is code that executes on this, asynchronous code...
Tracing principles and knowledge points from vue-router Front-end route (2) Hash Implementation Route Example What is a route Route is a mapping of URL resolution...
Recently in the system to learn the basic knowledge of JavaScript, this article explains the implementation of Ajax. First, the code of a native implementation:...
Publish-subscribe is widely used in asynchronous programming as an alternative to traditional callback functions. Publish-subscribe can replace hard-coded communication between objects, where one object no...
When it comes to cross-domain, we first talk about same-origin, which means that "protocol + domain name + port" are the same. The so-called cross-domain...
When the front end requests the server information through POST, we will find two requests, one Request Request Method is Options, the other Request Reuest...
The mockJS implementation intercepts, emulating the XMLHttpRequest object. Rewrite the open, send, and other methods. When the method is called, it is just a normal...
This paper is a short story, mainly to explain the design idea of encapsulation network request, for the following gRPC encapsulation theory. We will introduce...
The same Origin policy is the cornerstone of browser security. It is designed to keep information secure and prevent malicious websites from stealing data. The...
The position of this jQuery project practical course in the whole HTML5 curriculum system is also very important, with a link between the preceding and...
Js code is divided into synchronous tasks and asynchronous tasks. Synchronous tasks enter the main thread and asynchronous tasks enter the Event Table. When the...
Promise is a solution to asynchronous programming that makes more sense and is more powerful than traditional solutions -- callback functions and events. It was...
A. Event.currenttarGet B. event.which For keyboard and mouse events, this property determines which key or button you press. Standardized. C. deferred. Done (doneCallbacks[,doneCallbacks]). The argument...
With asynchronous processing, ES5's callback sent us into hell, ES6's Promise got us out of the dark, and finally ES7's async-await brought us into the...
Have the same primary domain, different secondary domain. Add document.domain='a.com' to each file; The next generation of browsers will support this feature: Chrome 2.0+, Internet...