Master the basics of axios

During my recent internship in the company, I came to share my technology again. After reading what you shared before, I couldn't think of what to share for the moment. I was worried I suddenly remembered that I was asked about axios during my first internship, so I came to study systematically to see if there was anything I could share. 1, W ...

Posted by iraja on Wed, 09 Mar 2022 06:35:37 +0100

node.js link database

node.js link database 1. Premise The computer has node installed. You can use the win+R key, enter cmd, and then enter node -v to check the version; Then enter npm -V to check the installed version of npm After all the above, create an empty folder named projects, which creates three empty folders: JQ, HTML and API In the jq folder, impo ...

Posted by jibosh on Tue, 08 Mar 2022 13:55:17 +0100

Implement JavaScript language interpreter

prefaceLast article I introduced some basic concepts of syntax parsing and how to realize the syntax tree parsing of Simple language interpreter through custom DSL language. In this and the last article in this series, I will introduce you how the Simple interpreter executes the generated syntax tree.evaluate function and scopeThe evaluate func ...

Posted by ppgpilot on Tue, 08 Mar 2022 07:04:21 +0100

7hutool actual FileUtil file tool class (common operation methods for more than 100 files)

Technical work should be rewarded follow+Click three times (like, comment, collect) and watch again to form a good habit hutool actual combat (take you to master various tools inside) directory Purpose: File tool class (common operation of files) Usage scenario Provide common operation methods for more than 100 files, including but not li ...

Posted by webing on Tue, 08 Mar 2022 01:29:07 +0100

node http transport resolution

One time HTTP transmission resolution The purpose of this guide will give you a clear and complete understanding of HTTP transmission processing. Regardless of the specific programming language and development environment, we assume that you already know how HTTP works in general. We also assume that you are familiar with node JS EventEmitters ...

Posted by calmchess on Mon, 07 Mar 2022 20:08:51 +0100

Use CentOS + finalshell + node JS + MySQL + git + gitee + Tomcat + nginx + domain name resolution to build a simple website tutorial

catalogue 1, Purchase and installation of server 2, Download of required software 2.1. Final shell download and installation 2.2,Node.js 2.3,MySQL 2.4,JDK 2.5,Tomcat 2.6,Nginx 2.7,Git 3, Node JS installation and configuration 4, Installation and configuration of Git and gitee 5, Tomcat installation and configuration 6, Installation ...

Posted by SnaD on Mon, 07 Mar 2022 17:34:50 +0100

Node.js Express framework

1, Introduction to Express Express is a simple and flexible node JS Web application framework provides a series of powerful features to help you create various Web applications and rich HTTP tools. Using Express, you can quickly build a fully functional website. Core features of Express framework: Middleware can be set up to respond to HT ...

Posted by dacs on Sun, 06 Mar 2022 05:11:22 +0100

Node.js multi process

1, Node JS multi process We all know node JS runs in a single thread mode, but it uses event driven to handle concurrency, which helps us create multiple sub processes on a multi-core cpu system to improve performance. Each child process always has three flow objects: child stdin, child. Stdout and child stderr. They may share the stdio fl ...

Posted by lunas on Sat, 05 Mar 2022 17:31:01 +0100

Node.js basic design pattern --- observer pattern

introduction: On node Another important and basic pattern used in JS is the observer pattern, which is also one of the pillars of the platform and a prerequisite for using the node core and user module The observer defines an ideal solution for building nodes JS response characteristics, and is a perfect complement to callback. A formal ...

Posted by portabletelly on Fri, 04 Mar 2022 22:58:09 +0100

07-node.js client-side rendering, server-side rendering and server-side rendering message board (without database, it is suitable for novices to get started. How does the node server render pages)

1, Client side rendering and server side rendering 1. Client side rendering (SSR) Html is only a static file. When the client requests, the server does not do any processing, and directly returns it to the client in the form of the original file. Then, according to the JavaScript on HTML, DOM is generated and html is inserted. 2. Servic ...

Posted by escocia1 on Fri, 04 Mar 2022 11:52:04 +0100