Typescript best practices
summary
Deep understanding of TypeScript
TypeScript has a type system and is a superset of JavaScript It can be compiled into ordinary JavaScript code TypeScript is a more Java Script than JavaScript;
install
npm install typescript -g
tsc
# Version 3.9.7
# Syntax: tsc [options] [file...]
#
# Examples: tsc hello.ts
# ...
Added by rjs34 on Sat, 25 Dec 2021 16:04:32 +0200
Knowledge system of Web front end development engineer_ 12_Node.js
1, Router
It is used to manage routes. All routes under a module are put together and finally used by the WEB server.
Usage:
//Under the router:
const express = require('express'); //Introducing express
const r = express.Router( ); //Create router
r.get('/list',(req,res)=>{ //Add route
res.send('This is the list of users');
});
module ...
Added by Buyocat on Sat, 25 Dec 2021 12:03:49 +0200
What is SAP Commerce yForms
yForms enables insurance providers, financial service providers, and every organization that sells complex products or services to create highly customized Web forms that can be added to stores to guide customers through the purchase process. Forms can be easily created and managed through the Web-based form builder UI.yForms is a flexible and ...
Added by msgcrap on Fri, 24 Dec 2021 21:31:34 +0200
Server push technology
Server push technology
Environmental statement Platform: windows 10 Browser: Chrome 95.0 four thousand six hundred and thirty-eight point five four node: v10.16.0 npm: 6.9.0 node dependency:
express: 4.17.1axios: v0.21.1ws: 8.3.0 Note: remember to use the server started by express http://127.0.0.1:port/xxx To access the front page
...
Added by tylerdurden on Wed, 22 Dec 2021 11:13:35 +0200
Usage of Let and Const in JavaScript
Use of Let and Const
ES2015(ES6) adds two important JavaScript Keywords: let and const.
Let declared variables are only valid in the code block where the let command is located. const declares a read-only constant. Once declared, the value of the constant cannot be changed.
1. let command The let command has the following features: (1) Valid ...
Added by nonaguy on Wed, 22 Dec 2021 10:39:12 +0200
Boundless tutorial: node js - Express RESTFul API
Boundless tutorial network : REST is an architecture based on Web standards and uses HTTP protocol. It expands around resources, in which each component is a resource, and uses HTTP standard methods to access resources through public interfaces. REST was first proposed by Roy Fielding in 2000.
HTTP method
In a REST based architecture, the fol ...
Added by servo on Wed, 22 Dec 2021 02:06:48 +0200
angular self study notes
Angular
1, Preliminary start
1.1 INTRODUCTION
Angualr is an open-source web front-end framework developed by Google. It was born in 2009, created by Misko Hevery and others, and later acquired by Google. Is an excellent front-end JS framework, which has been used in many Google products.
According to the statistics of the number of projects ...
Added by neoform on Tue, 21 Dec 2021 05:52:14 +0200
5, Art template template engine
Statement: the correctness of personal study notes cannot be guaranteed
1. Basic concepts of template engine
1.) template engine
The template engine is a third-party module. Let developers splice strings in a more friendly way, making the project code clearer and easier to maintain. For example:
// Writing without template engine
var a ...
Added by coder4Ever on Sun, 19 Dec 2021 21:32:38 +0200
Building desktop applications using electron ic framework [Huihong]
preface
Electron is a framework that can use JavaScript, HTML, CSS and other technologies to build native programs. In other words, using electron allows us to use web technology to develop desktop applications. The GUI core of electron comes from Chrome. It uses V8 (JavaScript engine) and is written based on C + +. Many programs on the mark ...
Added by nick2price on Sun, 19 Dec 2021 05:26:48 +0200
ajax learning notes
AJAX
1. Definitions
Ajax, namely asynchronous javaScript and XML, is a web page development technology to create interactive, fast and dynamic web page applications. It can update some web pages without reloading the whole web page. Ajax can make web pages update asynchronously by exchanging a small amount of data with the server in the backg ...
Added by R4nk3d on Sat, 18 Dec 2021 22:52:56 +0200