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

Experience with async/await

Running Environment This method is supported above node7 This feature is supported above chrome55 and is typically used in node development Introduction to async Async is actually the syntax sugar of promise, a method marked by async that returns a promise object async is defined as follows: async function name([param[, param[, ... par ...

Posted by alexguz79 on Sun, 12 Jul 2020 17:10:50 +0200

How to determine the data type

Use typeof to determine data type (1) Judging basic data types //Number type typeof 1;//"number" //Boolean type typeof true;// "boolean" //String type typeof "zzz";// "string" //Undefined typeof undefined;// "undefined" //object function Person(name, age) { this.name = name; this.age = age; } var person = n ...

Posted by hesketh on Mon, 06 Jul 2020 17:54:22 +0200

How to determine the data type

Use typeof to determine data type (1) Judging basic data types //Number type typeof 1;//"number" //Boolean type typeof true;// "boolean" //String type typeof "zzz";// "string" //Undefined typeof undefined;// "undefined" //object function Person(name, age) { this.name = name; this.age = age; } var person = n ...

Posted by exxx on Mon, 06 Jul 2020 17:54:53 +0200

. Net architecture programming

Programming questions 1. Implement fuzzy query in the controller and return the result to the view. (example of fuzzy query user name) [front view code] <form action="QueryUsername" method="post"> User name: < input type = "text" name = "username" / > < input type = &q ...

Posted by mansuang on Wed, 01 Jul 2020 17:06:58 +0200

Common HTML events in JavaScript

HTML events are things that happen on HTML elements, which can be browser behavior or user behavior. We can use JavaScript to trigger this event. The following are common HTML events: onclick: the user clicks on the HTML element. onchange: HTML element changes onload: the browser has finished loading the page. onmouseover: the user moves t ...

Posted by matt_4013 on Tue, 30 Jun 2020 05:29:11 +0200

Backup private key for MAC decentralized wallet development

1, Private key   in this lesson, we will continue to register the Token, which is to backup the private key. Each public chain will have a private key, but it is different. There are four private keys in MAC. namely Wallet Key Wallet key is one of the necessary information to open MAC wallet. ...

Posted by doodmon on Mon, 29 Jun 2020 10:36:56 +0200

Spring cloud Part 6: Spring Cloud Config Github

As distributed projects get bigger and bigger, hardworking programmers will begin to face a challenge, and configuration files will become more and more complicated, although spring provides a chicken rib solution, spring.profiles.active In the large-scale distributed project system, it's better than nothing. The pain of manual maintenance of c ...

Posted by michealholding on Mon, 29 Jun 2020 06:15:03 +0200

Basic syntax of jQuery, selector, DOM operation

What is JS framework JS framework is also written in JavaScript language. The framework itself provides a lot of new methods, which can simplify JS code and improve development efficiency. To put it bluntly, it is a defined JS file that encapsulates many functions inside, which can greatly simplify ou ...

Posted by dhimok on Sun, 28 Jun 2020 04:43:26 +0200

vue3.0 Source Parsing 1: Data Binding Principles (Up)

Preamble Introduction Beginning with this article, we are officially entering the vue3.0 source code parsing process.Personally, starting with ceateApp is not the best way to learn, so let's start with composition-api responsive principles and work together to learn what dramatic changes vue3.0 brings. The serialized articles are roughly the s ...

Posted by reinmedia on Sat, 27 Jun 2020 19:18:18 +0200