node.js environment construction and core

1.1 pre content 1.1.1 what is javascript Concept: it follows ECMAScript standard, is the concrete implementation of ECMAScript, supports browser API,BOM and DOM, and supports node JS API 1.1.2 what is node js Concept: javascript running environment based on chromev8 engine. 1.2Node.js download and install Download from official website 1 ...

Posted by fatal on Fri, 25 Feb 2022 14:23:01 +0100

Interpretation of Vue source code -- Vue initialization process

When learning becomes a habit, knowledge becomes common sense. Thank you for your likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.targetDeeply understand the initializati ...

Posted by JeanieTallis on Tue, 22 Feb 2022 01:43:36 +0100

Use nodejs to add a full page translucent watermark to the picture

Business backgroundAs the export function of middle and background projects, it is usually required to have the traceability of export.When the exported data form is a picture, a watermark is usually added to the picture to achieve this purpose.DEMOSo how to add a watermark that can be used as the identity of the exporter before exporting the p ...

Posted by WilliamNz on Mon, 21 Feb 2022 14:37:47 +0100

Node. JS learning 12 (Node.js server development, http protocol and http module)

1, Node JS server development A complete website application is mainly composed of client and server. We can understand the server as a computer, which is mainly responsible for storing data and processing application logic. Use node JS to replace the traditional server-side language (such as Java, PHP language, etc.) to develop the serv ...

Posted by Channel5 on Sun, 20 Feb 2022 16:37:59 +0100

Node.js source code analysis - registration of native modules (C + + Modules)

title: Node.js source code analysis - registration of native modules (C + + Modules)date: 2018-11-28 21:04:49tags:- Node.js - Node.js Source code analysis - Source code analysiscategories:- Node.js Source code analysis This article was first published on the personal website four years ago, and is now migrated to this site for re posting. The o ...

Posted by Warmach on Sun, 20 Feb 2022 04:55:36 +0100

Node.js to realize the function of web news crawler and search

Node. News crawler and network search (JS) Project requirements 1, Reptile part 1. Complete the web page analysis and crawler design of the target website. 2. Crawl no less than 100 pieces of data (each data includes 7 fields, news keywords, news titles, news dates, news authors, news sources, news abstracts and news contents), and store ...

Posted by canobi on Fri, 18 Feb 2022 11:33:58 +0100

Implementation of napi from c++ addon

Node. The napi of JS greatly facilitates the writing of c++ addon, making users no longer need to face complex v8. This paper analyzes the use of napi and what napi does through an example. 1. Functions exported to js #include <node_api.h> NAPI_MODULE(NODE_GYP_MODULE_NAME, Init) The above code is a general pattern when using napi. We ...

Posted by Lukey on Fri, 18 Feb 2022 01:57:11 +0100

eggjs implementation server request tutorial document-2

Continue with the previous article. If you want to review the content of the previous article, please click here eggjs implementation server request tutorial document-1 3, User details interface development (post request) egg With the example of get request, the post implementation is the same. /app/router/detail.js 'use strict'; modu ...

Posted by nofxsapunk on Thu, 17 Feb 2022 18:29:45 +0100

promise and async/await parsing

Problem introduction What is hell The case of nested callback functions in callback functions is called callback hell. Callback hell is an operation that occurs to realize the sequential execution of code. example setTimeout(()=>{ console.log('This is the first step') setTimeout(()=>{ console.log('This is the secon ...

Posted by keyont on Thu, 17 Feb 2022 16:30:03 +0100

webpack5 learning and actual combat -- code separation

So far, there is only one bundle of files we have packaged js is such a js file. Then if the project is large, the js will become very large! This causes the first screen to take a very long time to load. Many of these codes do not need to be used immediately, which is a waste of resources. So we can separate the code and introduce it on demand ...

Posted by Deserteye on Tue, 15 Feb 2022 17:21:06 +0100