How to create a node Using log objects correctly in JS

Log is a very important means for developers to troubleshoot problems, sometimes even the only one. Therefore, how to print log reasonably and correctly has become the top priority in development.Node. There are several ways to print logs in JS:1. Active display2. Passive recordingThese two methods can be implemented by different modules. Let's ...

Added by beanman1 on Tue, 04 Jan 2022 20:22:21 +0200

Scaffold development - preparation phase

Basic principle of scaffold Click to view the overview of scaffold series articles [updating] Personal website: www.dengzhanyong.com Pay attention to the official account. Front end Xiaoyuan ], don't miss every article Initialize project 1. Create project file mkdir steamed-cli cd steamed-cli 2. Use lerna to initialize the projec ...

Added by blink359 on Mon, 03 Jan 2022 14:52:26 +0200

[wechat applet cloud development] learn to upload, download, preview and delete pictures in 1 minute, and display pictures in Jiugong grid

Hello, my name is little bald monkThis article is to explain how cloud development can upload, download, preview and delete images, and display the functions of images in a nine house grid@1. Realization effectDon't talk nonsense. Look at the effect firstexplain:In the middle of the pause, I was choosing to upload photos. Click the "x&quot ...

Added by labmixz on Fri, 31 Dec 2021 14:45:13 +0200

Webpack of fashion - beginner level chapter

Fashion Webpack - core concepts of basic articles (2) fashion cloud - CSDN blog fashion Webpack - core concepts of basic articles (2)https://blog.csdn.net/zsx0806/article/details/122198850 Picture from webpack Official website logo   Some methods of loader: css loader - process css files} style loader - insert css into header Less ...

Added by Attila on Fri, 31 Dec 2021 11:47:26 +0200

webpack personal notes

In essence, webpack is a static module bundler for modern JavaScript applications. When webpack processes an application, it recursively builds a dependency graph that contains each module required by the application, and then packages all these modules into one or more bundle s. install md mypack //New folder cd mypack // Enter your projec ...

Added by inferium on Thu, 30 Dec 2021 17:01:49 +0200

Front end modularization

1. Background Recently, when using a front-end library, I looked at its documentation. The only way to import it is script, and I want to introduce this module in VueCLI environment. Open the entry file of this library as follows: When we see the keyword exports, we know that this is a module defined according to the CommonJs module specificat ...

Added by Grodo on Tue, 28 Dec 2021 06:36:08 +0200

Publish Subscription Mode EventEmitter

Node. The events module of JS provides an external EventEmitter object for Node. Events in JS are managed uniformly. Because Node.js uses event-driven mechanisms, and EventEmitter is Node.js implements the foundation of event driven. On the basis of EventEmitter, Node. Almost all modules in JS inherit this class to implement an asynchronous eve ...

Added by ljschrenk on Mon, 27 Dec 2021 19:57:16 +0200

Based on node JS build a simple MQTT server, and the mobile phone connects to the computer through the hotspot to realize the MQTT server test

Based on node JS build a simple MQTT server, and the mobile phone connects to the computer through the hotspot to realize the MQTT server test Server construction First, build the node JS environment. Configure the MQTT server. There are many online tutorials. You can refer to this blog for configuration Node.js configuration. Server mqtt j ...

Added by rhasce on Sun, 26 Dec 2021 03:47:25 +0200

Electron process management tool development diary 3: process pool load balancing, intelligent start and stop

>>Original linkSome of the tools and methods implemented in this paper are in the early / test stage and are still under continuous optimization. They are only for referenceAt Ubuntu 20 Developed / tested on 04, available for electron project, test version: Electron@8.2.0 / 9.3. fiveContents├── Contents (you are here!) │ ├── I. preface ├ ...

Added by levi_501_dehaan on Sat, 25 Dec 2021 18:26:58 +0200

Node.js SQL database operation (operation of MySQL database and database connection pool)

Node.js MySQL driver Node. The native MySQL driver library of JS is called mysql MySQL L2 project is an upgraded version of the native MySQL driver project. It is compatible with MySQL and supports its main features. It provides new features: Faster and better performancePreprocessing statementExtended support for encoding and collati ...

Added by Aeolus on Sat, 25 Dec 2021 17:08:40 +0200