npm and packages (develop your own packages)

Initialize the basic structure of the package Create a new demo-tools folder as the package directoryIn the demo-tools folder, create the following three new files package.json (Package Management Profile) index.js (entry file for package) README.md (package documentation) 1. Initialize package.json { "name":"demo-tools", "version": ...

Posted by CodeJunkie88 on Sun, 09 Jan 2022 19:51:06 +0100

Some simple ways to get started with vue:

  Vue.js is a popular JavaScript front-end framework designed to simplify Web development. Vue focuses on the view layer in MVC mode. At the same time, it can easily obtain data updates and realize the interaction between view and model.   The official website is: https://cn.vuejs.org     Use vue A simple template made by vue in min.js < bod ...

Posted by jaybones on Sun, 09 Jan 2022 17:53:12 +0100

[JavaScript Weekly #570] Compare Svelte and React

🥳 Welcome interested partners to do something meaningful together!I launched a weekly translation program, Warehouse address,Access address There is still a shortage of like-minded partners. They are purely personal interests. Of course, they will also help to improve English and front-end skills. Requirements: English is not too bad, githu ...

Posted by jspodisus on Sun, 09 Jan 2022 16:13:32 +0100

You won't be serverless in 2022? Look at this nanny tutorial

This article mainly demonstrates the deployment of Tencent cloud serverless Web function management The operation principle of Web function is shown in the following figure: After the HTTP request sent by the user passes through the API gateway, the gateway side directly transparently transmits the native request. At the same time, the f ...

Posted by gaogier on Sun, 09 Jan 2022 14:53:43 +0100

Code scanning login principle + code analysis + complete dome

1. Introduction The function of scanning code to log in should be started at the PC end of wechat at the earliest. It must be said that it is still very magical. This paper will briefly introduce the technical implementation logic of code scanning login function 1, Basic technical principles a. What is the code scanning login functi ...

Posted by morphius on Sun, 09 Jan 2022 12:05:20 +0100

Introduce Echarts into vue to draw histogram

1 introduction of Echarts 1.1 installation Install ECharts through npm using the following command npm install echarts --save Note: the version of echarts installed in this article is "echarts": "5.2.1" 1.2 introduction After the installation is completed, you can import all ecarts, so that we can use all com ...

Posted by nowaydown1 on Sun, 09 Jan 2022 10:22:19 +0100

BOM browser object model

window object timer Page clock Address bar object History object URL encoding 1. Basic concepts of browser object model 1. Concept: * encapsulate the components of the browser as objects 2. Features: * BOM objects cannot be created by themselves. When a document is loaded into memory, the browser automatically creates it. 3. Composi ...

Posted by webdata on Sun, 09 Jan 2022 07:09:01 +0100

On dynamic programming and dfs

prefaceIt is still necessary to learn the front-end algorithm. Not to mention that large factories test the algorithm in interviews, but when doing the permission module, if you don't understand the algorithm, you can't write the user-defined traversal of the tree structure.Today, I will make a summary of the dynamic programming and dfs encount ...

Posted by anhedonia on Sun, 09 Jan 2022 06:34:48 +0100

Record screen using browser

Recently, there is a need to record the screen, which is similar to the operation tutorial of recording software to demonstrate to others. After searching the recording screen on the Internet, most of the results need to be downloaded and installed, and there are charges or advertisements. Inadvertently found a website using a browser to record ...

Posted by rawky on Sun, 09 Jan 2022 05:33:37 +0100

[JS reverse hundred examples] PEDATA encryption information and zlib Application of gunzipsync()

statement All contents in this article are for learning and communication only. The packet capturing content, sensitive website and data interface have been desensitized. It is strictly prohibited to use them for commercial and illegal purposes, otherwise all the consequences have nothing to do with the author. If there is infringement, pl ...

Posted by skurai on Sun, 09 Jan 2022 05:19:05 +0100