Learn about node JS (Stream)

Node. The Stream in JS is notoriously difficult to use or even understand. In the words of Dominic Tarr, "flow is the best and most misunderstood idea in Node." Even the creator of Redux and react Dan Abramov, a core team member of JS, is also afraid of Node flow. This article will help you understand streams and how to use them ...

Posted by isurgeon on Wed, 18 May 2022 10:49:24 +0300

Front end embedded point export based on xlsx populate

Three scenarios of realizing excel export function The back end generates excel and encapsulates it, and directly returns the file address to the front end through the interface. After getting the file address, the front end creates a tag through js, assigns the file address to the href attribute of a tag, calls the click method of a tag, and ...

Posted by alwoodman on Wed, 18 May 2022 01:53:23 +0300

js advanced array method

Foreword: When you learn advanced js, you will learn several methods about arrays. I will list several here, and briefly introduce the usage and characteristics. The syntax of each method is similar One.forEach() forEach iterates (traverses) the array This method has no return value and will modify the contents of the original array The fu ...

Posted by lucy on Wed, 18 May 2022 01:47:51 +0300

How to Secure Your Documents with JSON Web Tokens (JWT)

How to Secure Your Documents with JSON Web Tokens (JWT) In this article, we explain how to use JSON Web Token JWT to protect online documents from unauthorized access, so that you can more securely integrate online document editor development into your own web applications. The open source office suite ONLYOFFICE Docs will be integrated her ...

Posted by shonuff on Wed, 18 May 2022 00:53:22 +0300

Analyze the principle of react router V5 from the source code

This article will analyze the source code of the remaining components in the react router <Redirect> Like other routing components, < redirect > uses < routercontext Consumer > receive routing data; Define prop types for < redirect > Redirect.propTypes = { push: PropTypes.bool, from: PropTypes.string, to: PropTypes ...

Posted by dyip on Tue, 17 May 2022 23:20:24 +0300

Implementing a Universal Visual Vue Plugin Based on AntV G2

foreword AntV G2 Adhere to the design values ​​of nature, certainty, sense of meaning, and growth. Different from other visualization plugins, G2 is a data-driven high-interaction visualization graph syntax, which is highly usable and extensible. With the continuous development of business visualization, the complexity of data is increasing. I ...

Posted by smoked1 on Tue, 17 May 2022 20:16:56 +0300

ES6 loops and iterables

Author: Alan StormTranslation: crazy tech nerdoriginal: https://alanstorm.com/es6s-ma...Reproduction without permission is strictly prohibited This article will examine ES6's for ... of loops. old way In the past, there were two ways to traverse javascript. The first is the classic for i loop, which allows you to iterate over an array or any ob ...

Posted by SZero on Tue, 17 May 2022 19:07:58 +0300

Fool's tutorial: building a Markdown previewer using Vue and Electron

The latest trend that developers must adapt to is to write a code base for multiple operating systems. Electron is a JavaScript framework that allows you to create desktop applications with simple JavaScript and HTML and convert websites into executable applications, making full use of all the functions of Windows, Mac or Linux operating syste ...

Posted by newguy45 on Tue, 17 May 2022 14:56:38 +0300

Use and understanding of entry-level canvas

1,canvas canvas is h5 a new tag added, so it may not be compatible in the lower version of ie.Canvas is a canvas, which can draw graphics freely.canvas is a native js object and jq is not recommended 2. Basic use and introduction of canvas 1. Foundation use Use the canvas tag to add width and height attributes The canvas tag is an inline t ...

Posted by logging on Tue, 17 May 2022 04:53:11 +0300

AST reverse principle analysis babel

1. What is Babel Babel is a tool chain, which is mainly used to convert code written in ECMAScript 2015 + syntax into backward compatible JavaScript syntax, so that it can run in current and old versions of browsers or other environments. Here's what Babel can do for you: grammatical transformationAdd missing features in the target environmen ...

Posted by mad3533 on Tue, 17 May 2022 04:49:43 +0300