Ajax asynchronous request
Ajax
Ajax concepts
Ajax(Asynchronous JavaScript and XML): asynchronous JavaScript and XML
effect
Using Ajax, the page can be updated without refresh, the page can be submitted asynchronously, and the user experience can be improved
essence
Use a special object (XMLHttpRequest) provided by the browser to send a request to the server asynch ...
Added by Cyberspace on Wed, 09 Feb 2022 11:32:19 +0200
A text must understand - Ajax and form
Ajax
A way of calling background interface on Web page JQuery provides the corresponding usage, $ ajax({content}); Add the jQuery package first. The content part is a JS object.
$.ajax({
type:'get', //Request type: get - > call doget(), post - > call dopost();
data:req, //The data sent is req;
url:'queryAll', //Interfa ...
Added by Stelios on Wed, 09 Feb 2022 11:13:29 +0200
Apollo project practice
Apollo project practice
1 Apollo application
Project address: https://github.com/ctripcorp/apollo Instruction manual: https://github.com/ctripcorp/apollo/wiki
1.1 first acquaintance with Apollo
Apollo (Apollo) is a distributed configuration center developed by Ctrip framework department. It can centrally manage the configuration of di ...
Added by jtrost on Wed, 09 Feb 2022 10:50:19 +0200
Leaky bucket algorithm and token bucket algorithm
catalogue
1, Introduction to leaky bucket and token bucket
2, Redis + lua script + token bucket algorithm to realize current limiting control
1. Customize an annotation to label the current limiting method
2. Write lua script
3. Read lua script
4. Create an interceptor to intercept the method with this annotation
5. Register this interce ...
Added by SuisydeKing on Wed, 09 Feb 2022 10:41:42 +0200
java intern basic interview algorithm question code implementation (priority recommendation heap sorting)
The author is a recent intern. The following code is the biggest optimization of current understanding ability. I hope it will be helpful to you; Compared with quick sort and heap sort, the author gives priority to recommend readers to use heap sort, because the code complexity of heap sort is fixed, and the more the number to be sorted, the mo ...
Added by elis on Wed, 09 Feb 2022 08:17:50 +0200
Introduction to Java object-oriented Basics
✏️ Object oriented content core in Java:
EncapsulationInheritancePolymorphism
encapsulation
❓ What is encapsulation?
I wonder if you robbed the remote control of the TV when you were a child? The remote control is the result of packaging.
It's a simple way to pack everything in a black box.
Similarly, switch to Java. Since Java is ...
Added by mY.sweeT.shadoW on Wed, 09 Feb 2022 07:08:35 +0200
After the nanny series, it's so simple, so straight
catalogue
1, What's going on at the bottom of IO?
2, Sort out the structure of classes
3, IO big point
4, Demonstration of incoming wave examples
Summary:
Click like and watch again, form the habit of praise, search on wechat [coriander Chat Game] and pay attention to me.
preface:
Some big guys in the group said they wanted me to write ...
Added by EY on Wed, 09 Feb 2022 06:53:49 +0200
Master six operations of Java 8 Optional
Hello, I'm looking at the mountain.
Java 8 introduces a particularly interesting class: Optional, a tool that makes it easier for us to avoid NPE (null pointer exception).
A long time ago, in order to avoid NPE, we wrote a lot of code similar to if (obj! = null) {}. Sometimes if we forget to write, NPE may occur and cause online failure. In ...
Added by NeoSsjin on Wed, 09 Feb 2022 06:49:40 +0200
Structured mode-01 agent mode
1, Agent mode
①. concept
For some reason, an object needs to be provided with a proxy to control access to the object. At this time, the access object is not suitable or cannot directly reference the target object. The proxy object acts as the intermediary between the access object and the target object
②. structure
Abstract Subject c ...
Added by ramtulasi on Wed, 09 Feb 2022 06:43:44 +0200
AQS detailed explanation and source code annotation analysis
AQS detailed explanation and source code analysis
1. General
What is AQS? The full name is AbstractQueuedSynchronizer, which is an abstract class in JDK. First, let's look at the classes that inherit it:
Basically, all classes in JUC concurrent packages are related to it. AQS is a heavyweight basic framework used to build locks or other sy ...
Added by Hypnos on Wed, 09 Feb 2022 06:30:36 +0200