What is a mode?
Broadly speaking, pattern refers to a pattern and process of regular changes and self-repetition on objects or events. In the pattern, some fixed elements are repeatedly reproduced in a predictable manner. The most basic and common model, known as password store, has two features: repeatability and periodicity. Finding a fixed pattern is one of the basic cognitive functions of humans. (Copied from Wikipedia)
It's a bunker, so it's a mess... In our software development process, the pattern can generally be understood as a solution or solution to a class of problems. (My understanding is to solve some common problems)
What are the advantages of a pattern?
Before using a new technology or language, we will measure whether it is good or bad for our current and future development. Through the learning mode, we can use proven experience to write code without having to do a lot of extra work, such as on the site side (if there is no excessive performance requirement ), we usually use Jquery as the base layer to help us deal with browser compatibility. We only need to write code at the Comm layer and even the Page layer, which greatly improves our work efficiency. The usage mode allows me to focus on more complex business implementation, without having to tangle with the rewriting of existing mature code (commonly known as wheel building, but it is necessary to make the wheel deeply. This also avoids us from being troubled by these things when thinking about the business logic.
Note: This is a theoretical (nonsense) note, which includes my understanding in my work and study. If there is a mistake, I hope to correct it and make progress together!