express Learning (3) - cookie s and session s

express Learning (3) - cookie s and session s Cookies exist in the browser and can only store up to 4K of data, which is not safe Session exists in the server and cannot be independent (read cookie s before session), which is more secure cookie tool Send cookie s: Write the basics first: const express = require('express'); var server=expre ...

Posted by anand on Thu, 16 Jul 2020 17:16:47 +0200

Self cultivation of the whole stack: 002 using @ vue/cli vue.js Environment construction

<h1>Self cultivation of the whole stack: using @ vue/cli vue.js Environment construction</h1> Success, real success, is being willing to do the things that other people are not. Success, real success, is willing to do what others don't want to do. Table of Contents @[TOC] When you read this article, I think you are interested in h ...

Posted by haddydaddy on Mon, 29 Jun 2020 09:27:29 +0200

Analysis of new features of Vue 3

It is known that the current stable version of Vue is 2.6.x, and the subsequent version is 2.7.x (part of vue3 content is added). After 18 months of maintenance, except for the security vulnerability update, the rest will not continue to update. Explain that we will embrace the era of vue3.0 in an all-round way Information about the compatibili ...

Posted by white99 on Wed, 24 Jun 2020 05:25:20 +0200

Let's write a small program timer management library

Author: attapulgite - Anthology background Attaman is a small program developer, he wants to implement the countdown of seconds in small programs. Without thinking about it, he wrote the following code: Page({ init: function () { clearInterval(this.timer) this.timer = setInterval(() => { // Countdown calculation logic c ...

Posted by edspace on Tue, 23 Jun 2020 09:17:17 +0200

How to write Vue next response? Detailed explanation of this article

preface 1. This paper will write a response principle in Vue next from scratch. Due to the difficulty of space and understanding, we will only implement the core api and ignore some boundary function points The APIs to be implemented in this article include track trigger effect reactive watch computed2. Recently, many people asked me about th ...

Posted by sorenchr on Thu, 18 Jun 2020 06:06:20 +0200

Learn the overall structure of redux source code and deeply understand the principle of redux and its Middleware

1. Preface Hello, I am Ruokawa . This is the eighth part of the whole learning source architecture series. The word "overall architecture" seems to be a little big. Let alone the overall structure of the source code. The main thing is to learn the overall structure of the code without going into the implementation of other specific f ...

Posted by drfate on Mon, 15 Jun 2020 04:06:57 +0200

How to use Node+MySQL+express to add, delete, modify and query

First of all, thank you for this little sister's video: Bili bilibili - very poor female programmer   List structure attached: 1, Development preparation Node installation and configuration MySQL installation and configuration Database visualization tools: Navcat Interface t ...

Posted by ukspudnie on Tue, 09 Jun 2020 07:08:23 +0200

Basic use of dayjs time processing library

Day.js Is a lightweight JavaScript time and date processing library, and Moment.js The API design of is consistent. This article only introduces some common operations. For details of internationalization, plug-ins, customization and other advanced contents, please refer to the official documents. Its main characteristics are as follows: A ...

Posted by bond00 on Wed, 03 Jun 2020 18:23:55 +0200

redux source code interpretation (2)

(1) A simple version of redux is written in. The tests are all directly based on the command line output. Obviously, this is unscientific So you need to write tests, so. I chose jest. The introduction on the Internet is as follows . Configure simple test environment according to official documents npm install --save-dev jest Add th ...

Posted by holowugz on Sun, 03 May 2020 19:17:48 +0200

gulp configuration es6 to es5

1. New Project The project structure is as follows: /app -- /js -- /css /dist -- /js -- /css -- index.html gulpfile.js Our code is developed in the / app directory and saved in / dist after transcoding, merging, compressing. 2. Configuring the environment (1) Initialize npm First enter the root directory and initialize the project npm ...

Posted by Frozenlight777 on Sun, 03 May 2020 11:35:14 +0200