javascript knowledge summary
1.JS usage:
A. Tag: < script > < / script >
B. Tags can be placed in the head or body. When in the body, the script should be placed at the bottom of the < body > element to improve the display speed, because Script Compilation will slow down the display.
C. Default attribute: < script type = "text / JavaScript&q ...
Added by megavolt on Wed, 09 Mar 2022 18:18:15 +0200
E-commerce background management system,
1, Project structure
Encapsulating axios
First, install axios. Generally, I will create a new network folder in the src directory of the project as our network request module, and then create a new http JS and an API JS file and a request js. http.js file is used to encapsulate our axios, API JS is used to uniformly manage our interface ...
Added by Jay_Seagrave on Wed, 09 Mar 2022 10:45:45 +0200
Breakpoint continuation of large files based on elementui
1, Pain points of uploading large files at the front end
1. Too many files lead to tight bandwidth resources and reduced request speed; 2. If the service is interrupted, the network is interrupted and the page crashes during the upload process, the file may be uploaded again.
2, Analysis of pain points
The front end selects the file and uplo ...
Added by halex on Wed, 09 Mar 2022 08:34:09 +0200
Use of axios in vue
1, What is Axios
Axios is a promise based HTTP Library (similar to jQuery's Ajax for HTTP requests)Can be used for browsers and node JS (it can be used for both the client and the server written by node.js)
2, What are the features of Axios
Support promise APIIntercept requests and responsesConvert request data and response dataCance ...
Added by RussellReal on Tue, 08 Mar 2022 02:42:52 +0200
JSP expression language (EL) tutorial
What is expression language (EL)?
Expression language (EL) is a mechanism that simplifies storage in Java Accessibility of data in Bean components and other objects (such as requests, sessions, applications, etc.). There are many operators in JSP that are used in EL, such as arithmetic operators and logical operators to execute expressions. I ...
Added by QSDragon on Sun, 06 Mar 2022 15:55:21 +0200
An article takes you to use vue to complete a complete background
introduce
vue-element-admin Is a background front-end solution based on vue and element-ui realization. It uses the latest front-end technology stack, built-in i18 internationalization solution, dynamic routing and permission verification, refines the typical business model and provides rich functional components. It can help you quickly build ...
Added by fandelem on Sat, 05 Mar 2022 21:37:07 +0200
Vue3. Configuration method of X + vite introducing third-party Cesium package
1. Introduction
In the process of application development based on Cesium, it is often encountered that the library to be used is not the standard Cesium official package. The Vue integration of the official package is quite mature and there are many materials to view. However, the unofficial package reference integration, especially in the Vu ...
Added by kittrellbj on Sat, 05 Mar 2022 18:44:34 +0200
Unfixed column excel import and export, with source code
A series of work came
preface
We briefly introduce the practice scheme of excel import and export technology. At present, the most used open source frameworks mainly include the following three categories: 1/ apache poi: poi is the most widely used import and export framework, but its disadvantages are also obvious. When exporting a lar ...
Added by VinnyWolf on Fri, 04 Mar 2022 03:31:17 +0200
Vue3's seven component communication modes, no more component communication
This article is all adopted <script setup> This combined API writing method is more free than the option API writing method. For details, please refer to Vue documents Description of two ways.
This article will introduce the following seven component communication modes:
propsemitv-modelrefsprovide/injecteventBusVuex / Pinia (state mana ...
Added by evan18h on Wed, 16 Feb 2022 11:12:56 +0200
Causes and optimization of excessive offset affecting performance in mysql query
1 problem status
At first, we used the simplest offset+limit paging query method. The pseudo code is as follows:
List<Student> students = new ArrayList<>();
int limit = n;
int offset = 0;
do {
students = SELECT * FROM [table] WHERE status = [status] AND gradeId = [id] LIMIT [limit] OFFSET [offset];
push(pos);
update [table] ...
Added by river001 on Tue, 15 Feb 2022 14:12:03 +0200