M5 (project) - 01 - development document of distributed foundation of Shangsi Valley grain mall project
M5 (project) - 01 - development document of distributed foundation of Shangsi Valley grain mall project
Distributed Foundation
1, Environment construction
Installation of various development software
Virtual machine: docker,mysql,redis
Host: maven, idea (back end), vscode (front end), git,NodeJS
Version and installation process
Quickly b ...
Posted by sidney on Fri, 04 Mar 2022 15:31:16 +0100
vue page refresh, data loss, data reset, data cache, data cache, vuex cache
Page refresh data lost
In vue, data, vuex store and other data are in memory. Once the page is refreshed, these data will be lost (or reset to the initial value), which will affect the user experience at some times.
Cache, recovery
If you want to make the data refresh not lost, you have to listen to the page refresh event, cache the data to ...
Posted by jarriola on Fri, 04 Mar 2022 13:03:15 +0100
Miraculously, this Vue background framework doesn't need to manually configure routing
preface
Vue development is inseparable from routing, especially for medium-sized and large-scale projects. There are many and miscellaneous pages. When configuring routing, it will always become increasingly irritable, because it is time-consuming and does not have much technical content. I always feel that it is a waste of time.
In addition, ...
Posted by Jade on Fri, 04 Mar 2022 12:17:28 +0100
5, CSS -- the basis, nature and introduction of CSS
1, Introduction to css
1. Concept of css
1.1 what is css
The web page is divided into three parts:
Structure( html)
Performance( css)
Behavior( js)
css:Cascading style sheets
The web page is essentially a multi-layer structure CSS To set the style for each layer of the web page,
In the end, we see the top layer of ...
Posted by IceD on Fri, 04 Mar 2022 11:42:30 +0100
Give you three different ways to implement GET and POST requests
Article catalogue
catalogue Article catalogue preface 1. Ajax in jQuery 1.1,$.get() 1.2,$.post() 1.3,$.ajax() 2. XMLHttpRequest mode 2.1. Initiate GET request 2.2. Initiate POST request 3,Axios 3.1. Initiate GET request 3.2. Initiate POST request summary
preface
It's a new beginning. After a happy holiday, I began to invest in th ...
Posted by waradmin on Fri, 04 Mar 2022 10:00:06 +0100
A tool library for recording, video recording and screen recording can be easily realized with JS
preface
Hello, everyone. I'm a sea monster.
Recently, the project encountered a demand for recording on the web page. After a wave of search, it was found react-media-recorder This library. Today, let's study the source code of this library, from 0 to 1 to realize the functions of recording, video recording and screen recording of React.
...
Posted by Byron on Fri, 04 Mar 2022 06:52:56 +0100
Front end and mobile development - wechat applet - applet
Wechat applet day 3
1. Page navigation
1.1 two ways to realize page navigation in applet
What is page navigation Page navigation refers to the mutual jump between pages. For example, there are two ways to realize page navigation in the browser:
a labellocation.href Two ways to realize page navigation in applet
Declarative navigati ...
Posted by shivabharat on Fri, 04 Mar 2022 04:55:12 +0100
Mybatis quick start
1. Introduction to mybatis
1.1 original jdbc operation (query data)
1.2 original jdbc operation (insert data)
1.3 analysis of original jdbc operation
The problems existing in the original jdbc development are as follows:
① The frequent creation and release of database connections cause a waste of system resources, which affects the sys ...
Posted by Quicksilver_0 on Fri, 04 Mar 2022 03:49:02 +0100
Tear Front End JavaScript by Hand (Phase 1)
1. Anti-shake function (debounce)
Purpose: Prevent users from triggering events multiple times and wasting multiple requests
Principle: Callback is executed after an event triggers for n seconds; If triggered again within n seconds, the time is recounted;
const debounce = function(func,delay = 50){
/*
func: Functions requiring ...
Posted by JayBlake on Thu, 03 Mar 2022 19:10:25 +0100
How to split an array into even blocks using JavaScript
Author: Abhilash Kakumanu Translator: Front-end wit Source: stackabuse
Have a dream, have dry goods, WeChat Search [Move the World] pays attention to this bowl-brushing wit that was still cleaning in the morning.
This article GitHub https://github.com/qq449245884/xiaozhi Included, there are complete test points, materials and my series ...
Posted by hasjem on Thu, 03 Mar 2022 18:32:42 +0100