1. In depth summary of JS advanced Foundation

1. Data type 1.1 classification 1. Basic (value) type typeBrief descriptionStringArbitrary stringNumberArbitrary numberbooleantrue/falseundefinedundefinednullnull 2. Object (Reference) type typeType descriptionObjectAny objectFunctionA special object (executable)ArrayA special object (numeric subscript, internal data is ordered) var a ; ...

Posted by _SAi_ on Tue, 21 Sep 2021 14:13:45 -0700

javascript advanced programming collection type reference

#javascript advanced programming (VI) collection type reference 1, Object How to explicitly create an object instance (1) new + constructor let person = new People(); person.name = "abc"; person.age = 27; (2) Object literal let person = { name: 'abc', age: 28 } tips: a. Numeric property names are automatically converted to strings b. Wh ...

Posted by lucie on Tue, 21 Sep 2021 02:34:07 -0700

Node.js from getting started to giving up

ejs template engine The following is the simplest node.js route: handle different business logic according to different url requests import http from 'http' import url from 'url' http.createServer((req, res) => { res.writeHead(200, {'Content-Type': 'text/html;charset=utf8'}) const pathName = url.parse(req.url).pathname if (pat ...

Posted by maxat on Mon, 20 Sep 2021 19:27:51 -0700

Docking example of mock simulation data and back-end interface in VUE development environment

In the previous front-end development, the front-end relies heavily on the back-end, so we must wait for the back-end interface to be developed before we can continue to develop. Using mock, the front and back end development can be carried out asynchronously without affecting each other. Mock.js is an analog data generator. It can intercept aj ...

Posted by samyl on Mon, 20 Sep 2021 14:51:27 -0700

javascript advanced programming collection type reference

#javascript advanced programming (VI) collection type reference 1, Object How to explicitly create an object instance (1) new + constructor let person = new People(); person.name = "abc"; person.age = 27; (2) Object literal let person = { name: 'abc', age: 28 } tips: a. Numeric property names are automatically converted to strings b. Wh ...

Posted by jamkelvl on Sun, 19 Sep 2021 20:56:14 -0700

Standardized commit message submission information, commit verification, Standard Version automatic version replacement and changelog output

Auxiliary submission tool Because you need to use the commit tool to assist in submitting information npm install commitizen -g Then you need to install the node environment first use Under project directory # npm init is required first commitizen init cz-conventional-changelog --save --save-exact Submit using git cz The specification ...

Posted by anolan13 on Sun, 19 Sep 2021 18:24:28 -0700

vue component vue pdf encountered the problem that the content replaced by gnawing and loading pdf is not displayed

Recently done mobile terminal project, packaging PDF Preview component, colleagues started using vue-pdf To preview and step on the pit again and again, we basically encounter three problems: 1,PDF Chinese not displayed 2,PDF If the signature is not displayed, the console prompts: Warning: Unimplemented widget field type "Sig", falling back to ...

Posted by julian1 on Sun, 19 Sep 2021 11:42:45 -0700

node.js--path common methods, path other methods

1. Common methods of path a. Path module (path) Encapsulates various path related operations Like Buffer, the path in NodeJS is also a special module The difference is that the Buffer module has been added to Global,   Therefore, manual import is not required The Path module was not added to Global,   Therefore, manual import is ...

Posted by plasmagames on Sat, 18 Sep 2021 22:04:48 -0700

express in node.js

Introduction to express Express is a third-party module used to quickly build the server (instead of http module)   Express is a fast, open and minimalist web development framework based on Node.js platform. Express retains the basic API of http module. When using express, you can also use http API express also encapsulates some new me ...

Posted by dey.souvik007 on Sat, 18 Sep 2021 10:18:58 -0700

express implements the post interface (no parameter / normal / JSON / form data)

post interface without parameters const express = require('express'); const app = express(); app.post('/api/post', function(req, res) { // Direct return object res.send({ name: 'abc' }); }); app.listen('8088', () => { console.log('8088'); });   After starting the terminal, use postman to test the post interface~     I ...

Posted by stereo on Sat, 18 Sep 2021 01:49:19 -0700