Node.js --- using Express write interface

1, Create basic server As follows: //Import Express module const express = require('express') //Create a server instance of Express const app = express() //Call app Listen method, specify the port number and start the server app.listen(80,function(){ console.log('Express server running at http://127.0.0.01') 2, Create API routing mod ...

Posted by bftwofreak on Wed, 12 Jan 2022 11:10:03 +0100

Application of Form in data stack: Verification

1, IntroductionThe theme of this paper is the application of Form in the data stack, which aims to help you better understand the cognition and practice of Form verification and linkage verification through some examples that have been applied in the data stack and the small tips sorted out by the author.This paper focuses on the verification o ...

Posted by imawake on Wed, 12 Jan 2022 10:25:34 +0100

15, Array basis, array method, array sorting

15, Array basis, array method, array sorting 1, Array basis 1.1 three ways to declare arrays It is recommended to create arrays in the form of array literals var arr1 = []; //array literal // The system's built-in Array constructor declares an Array var arr2 = new Array(); //Not recommended var arr3 = Array(); //Not used All arrays (reg ...

Posted by CoffeeOD on Wed, 12 Jan 2022 08:16:02 +0100

String common methods

Common methods of string There are many methods of string, but there are only those commonly used. Some of them have not been used. Here is a brief introduction 1.charAt(index): returns the values specified in the following table. The returned value is a new string without affecting the original string let str = 'hello'; let newStr = str.cha ...

Posted by Whyme on Wed, 12 Jan 2022 06:49:54 +0100

Creating SpreadJS custom cells using VUE components

In the previous article, we introduced how to dynamically create spreadsheet components in Vue by setting runtimeCompiler to true. For details, click to view useVUE component creates SpreadJS custom cell (I). However, in the actual scenario, we may only need to dynamically create VUE components, and the template content of components does not ...

Posted by AcidCool19 on Wed, 12 Jan 2022 05:44:37 +0100

VUE -- use VUE print NB to realize printing function

VUE -- use VUE print NB to realize printing function 1, Install Vue print NB There are no preconditions. You can install it directly, but because vue2 0 and vue3 0 has different usages, so the versions to be installed are also different. Please choose by yourself. Vue2. Version 0 installation method: npm install vue-print-nb --save Vue3. ...

Posted by alvinshaffer on Wed, 12 Jan 2022 05:04:28 +0100

Front end (day04) DOM, BOM, Api and built-in objects

DOM: Concept: Document Object Model document object model. Function: to operate marked documents (xml and html documents learned so far) Dom classification Core DOM (basic syntax of ECMA specification) The api of core Dom operates XML and HTML Dom of xml Function: to manipulate xml documents Dom of html Function: to manipulate html doc ...

Posted by Stanley90 on Wed, 12 Jan 2022 05:02:08 +0100

Tip for front-end html - Center html horizontally and vertically

Today, let's share the tips of "front-end HTML" - html is centered horizontally and vertically "This article is introduced in detail according to the example code. It may have a certain reference space and use value for everyone's programming. Friends in need will learn from Yunnan Qianlong Mark. Recently, I have encountered many ...

Posted by Adam_28 on Wed, 12 Jan 2022 04:35:49 +0100

Batch asynchronous update strategy and nextTick principle (code understanding)

let uid = 0; class Watcher { constructor () { this.id = ++uid; } update () { console.log('watch' + this.id + ' update'); queueWatcher(this); } run () { console.log('watch' + this.id + 'View updated~'); } } let callbacks = []; let pending = false; function nextTick (cb) { callbacks.pus ...

Posted by AE117 on Wed, 12 Jan 2022 04:00:23 +0100

Great, new JavaScript proposal: array groupBy()

Author: Ashish LahotiTranslator: front end XiaozhiSource: dmitripavlutinMany developers like the ruby programming language because it has a rich library of standard utilities. For example, arrays in Ruby have a large number of methods.However, our JavaScript is also working hard to gradually enrich its standard library in terms of strings and a ...

Posted by prasitc2005 on Wed, 12 Jan 2022 01:24:29 +0100