HR background management system project - login page - implementation steps
1. Landing page - style adjustment
The overall idea of the landing page is as follows:
Form validation (login/index.vue)
utils/validate.js ---> validMobile Collect user parameters and call actions
Call the encapsulated api in api/user.js
Find the axios instance: get the axios instance in utils/request.js Set base address f ...
Posted by arkismad on Fri, 15 Oct 2021 13:01:32 -0700
React source code analysis -- ReactChildren.js
2021SC@SUDSC
2021SC@SUDSC
ReactChildren.js
As anyone who has read the source code knows, this js file exports five methods:
export {
forEachChildren as forEach,
mapChildren as map,
countChildren as count,
onlyChild as only,
toArray,
};
Then in the React.js file:
const Children = {
map,
forEach,
count,
toArray,
on ...
Posted by Codewarrior123 on Thu, 14 Oct 2021 11:58:46 -0700
tabs to achieve dynamic data switching
Realization effect
General idea
First, I want to judge the number of each question type queried in the interface, find the question type ID whose count is not zero, and it appears first. I won't enter it after query, and then query and render the question
resolvent
At the beginning, I thought about how to change the activeName of the tabs ...
Posted by Fergusfer on Wed, 13 Oct 2021 21:05:13 -0700
One developer summed up these 15 elegant JavaScript tips
Author: Haseeb Anwar Translator: front end Xiaozhi Source: medium
There are dreams and dry goods. Wechat search [Daqian world] pays attention to this bowl washing wisdom who is still washing dishes in the early morning.
This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, materi ...
Posted by onepixel on Mon, 11 Oct 2021 17:37:59 -0700
Learn to operate mysql database with nodejs in three minutes
Step 1: - Preparation--
Create (projiect) folderOpen the terminal under the current file -- enter a command -- create a package management file
npm i
npm init -y or npm init // Generate package.json source file; If the name of the project folder is in Chinese, use npm init. If it is in English, use npm init directly
npm init -y
npm i my ...
Posted by bad_gui on Mon, 11 Oct 2021 13:36:45 -0700
html and js projects introduce parent-child or child-child value transfer into react framework
1, Introduction of react
Three files need to be imported
1.react.js
https://unpkg.com/react@17/umd/react.development.js
https://unpkg.com/react-dom@17/umd/react-dom.development.js
2.babel.js (because react is written in xml, it needs to be compiled with babel to avoid error)
https://unpkg.com/@babel/standalone/babel.min.js
You can direct ...
Posted by subnet_rx on Fri, 08 Oct 2021 19:15:54 -0700
How to upload a package
1. What is a bag?
The third-party module in Node.js is also called a package. It is developed by a third-party individual or team and is free for everyone to use
2. Package classification
Project package – development dependency package (stored in devdependences directory) – production dependency package (stored in the depend ...
Posted by TeNDoLLA on Fri, 08 Oct 2021 00:13:03 -0700
2021-10-07 learning record node modularization and package
modularization
Modularization refers to the process of dividing the system into several modules from top to bottom when solving a complex problem. For the whole system, modules are units that can be combined, disassembled and replaced.
1. Reusability. 2. Maintainability. 3. Load on demand
Module classification
//1. Built in module
const fs ...
Posted by saiko on Thu, 07 Oct 2021 15:27:27 -0700
Novice Teaching - teach to write a bag hand in hand
To write a package
First, you need to register the npm website account:
npmhttps://www.npmjs.com/ Go to the npm website and click sign Press the up button to enter the registration user interface
Fill in the information related to the account: full Name, Public Email, Username, Password
Click ...
Posted by grevathi_02 on Thu, 07 Oct 2021 12:39:11 -0700
[youth training camp] Node.js foundation - Web application development - development and debugging - Online deployment
I learned the basics of Node.js a few days ago. Today I'll learn about Web application development, how to debug in the development process, and how to deploy online
Web application development
HTTP module
We can use the built-in HTTP module of Node.js to build the simplest HTTP service
const http = require("http");
http
.crea ...
Posted by darkol on Wed, 06 Oct 2021 19:29:01 -0700