Node learning III. global variable Buffer
Buffer of global variable
Buffer is generally called buffer buffer.
Buffer allows JavaScript to manipulate binaries.
JavaScript language initially served the browser platform, so the main data type of its internal operation is string.
The emergence of Nodejs makes it possible to program with JavaScript on the server side to complete IO oper ...
Added by testtesttesttest on Sat, 13 Nov 2021 00:42:58 +0200
nodejs quick start programming
Differences between module.export and exports
Fundamental difference: exports returns module functions module.exports returns the module object itself and a class The difference in use is: The methods of exports can be called directly module.exports can be called only after the new object is required Change direction: If you change the dire ...
Added by Someone789 on Thu, 11 Nov 2021 04:35:46 +0200
The "toy vite" developed by you Yuxi a few years ago has only more than 100 lines of code, but it is very helpful to understand the principle of vite
1. PrefaceHello, I'm Ruokawa . Recently organized Source code co reading activity , you can add me wechat if you are interested ruochuan12 Participation has been carried out for more than two months. We exchange and study together and make common progress.Want to learn the source code, I highly recommend what I wrote before Learning source cod ...
Added by $Three3 on Mon, 01 Nov 2021 07:57:39 +0200
NodeJs - native JavaScript for Ajax asynchronous communication
preface
What I wrote earlier: the main knowledge point of this article is how to realize Ajax through native JavaScript. First, you need to have a little understanding of Json, HTTP network transmission protocol, network request mode, asynchronous programming, etc;
1. Implementation steps
Create XMLHttpRequest object;Judge whethe ...
Added by chet23 on Wed, 27 Oct 2021 16:49:02 +0300
[Node.js] upload and download files using Multer
As mentioned last time, the Express framework is used to build a simple back-end, and it can be used to accept various forms of parameters.
In this section, we will solve a very basic but also very important requirement in web Development - file upload and download
File upload
When uploading a file, the http request method is post, and the c ...
Added by FormatteD_C on Wed, 27 Oct 2021 07:13:30 +0300
Take you to write a complete Promise in three minutes
Take you to write a complete Promise in three minutes
Implement a foundation
Promise is a class that accepts a function parameter, and then has a status variable and then method inside. The initial value of the status state is pending. The callback function of the then method is temporarily stored in memory. After the asynchronous operation o ...
Added by TheRealPenguin on Tue, 26 Oct 2021 17:43:34 +0300
Tencent cloud server installs the pagoda panel and deploys node+vue to the cloud server. The vue+elementUI+node file upload project is super detailed
It took 2 days to study the cloud service and pagoda panel, and finally uploaded it successfully. Now make a detailed record to facilitate the majority of netizens to view it. Without much nonsense, start directly
Tencent ECS purchases and installs pagoda panels
Purchase ECs and install pagoda panels. You can choose to install pagoda pane ...
Added by justinede on Sun, 24 Oct 2021 16:27:14 +0300
How to publish an npm application?
preface
We need to install all kinds of npm every day. How do we publish npm to the remote warehouse? Understanding the process of npm from coding to push ing to npm warehouse will help us debug npm packages better. Next, take a JSON tree diff package I wrote as an example to show the process from writing to publishing an npm package.
Initial ...
Added by kee1108 on Tue, 12 Oct 2021 06:56:18 +0300
I'll use nodejs to crack the authorization of e Xiaotian wechat robot
Hello, I'm Laifu! A guy who is committed to using nodejs to realize office automation. In the last issue, I shared it with you nodejs+e Xiaotian realizes wechat chat robot For e-day temporary authorization, there is only one day of authorization time, so for new users, they need to click the temporary authorization button every day. However, fo ...
Added by bslevin on Mon, 11 Oct 2021 20:44:55 +0300
If you can use markdown, will you deploy a document website
I believe you will usually use markdown to write documents, especially with Typora, which is very convenient. But many times we are not satisfied with local documents, but to make the documents online, so that if the content is updated, team members can see it in time.
In fact, there are many open source projects used to generate static websit ...
Added by scotte on Sun, 10 Oct 2021 11:19:33 +0300