Vue3.0 basic summary
Vue3.0 basic summary
2-year development, 99 contributors, 2600 submissions, 628 pr, 41% reduction in packaging volume, 55% faster initial rendering, 133% faster update, and 54% reduction in memory usage
Deficiencies of Vue2.x
Global API is easy to pollute the global environment Mixin disadvantages: naming conflict, unclear variabl ...
Posted by common on Fri, 29 Oct 2021 20:40:42 -0700
Vue syntax template
1, Key modifier
1. Style binding
1.1 class binding v-bind:class="expression" Type of expression: string, array, object
1.2 style binding
v-bind:style="expression" Type of expression: string, array, object
Specific implementation:
<!DOCTYPE html>
<html>
<head>
&l ...
Posted by abhi on Fri, 29 Oct 2021 05:02:34 -0700
Puppeter project practice
Reprint: https://zhuanlan.zhihu.com/p/76237595
Case1: screenshot
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
//Set visible area size
await page.setViewport({width: 1920, height: 800});
await page.goto('https://youdata.163.com');
//Screenshot of the entire page
a ...
Posted by dgx on Fri, 29 Oct 2021 02:42:51 -0700
Basic part of React
The basic part of react also needs us to grasp it in depth. Like other bloggers, I suggest using the JS package that is convenient for beginners to reference first. I'm also a beginner. That's what I did before. websotrm and vscode tools are OK. The three packages are react.js (Core Library), react-dom.js (providing DOM related services) and br ...
Posted by jbingman on Fri, 29 Oct 2021 02:16:56 -0700
Introduction to Electron 02: process model, interprocess communication and Node module use
objective
In the last article Electron 01: getting started The basic usage of Electron is introduced in. If you just show the front-end page and don't need to use the file system, hardware devices and other functions of the operating system, just understand the content of that article. However, if you need to use the above resources, you n ...
Posted by Sayian on Fri, 29 Oct 2021 01:23:23 -0700
Micro front end development
1, Overview of micro front end
one What is a micro front end?
In order to solve the limitations of change and expansion caused by a large piece of back-end services, micro service architecture has emerged.
However, the more and more important front-end engineering is also facing the same problem. It is natural to think of applying ...
Posted by Basdub on Thu, 28 Oct 2021 22:41:34 -0700
Introduction to axios and notes on source code analysis
1, JSON server
Official website document address JSON server document
Install JSON server npm install -g json-server
Create a database JSON file under the target root directory: db.json
{
"posts": [
{ "id": 1, "title": "json-server", "author": "typicode" }
],
"comments": [
{ "id": 1, "body": "some comment", "pos ...
Posted by Fearsoldier on Thu, 28 Oct 2021 19:38:53 -0700
Introduction to Web API and DOM
This is the last article in the DOM Series ~ the main content of this article is node operations, events and DOM event flow.
1, Node operation
1. Node overview
All contents in a web page are nodes (labels, attributes, text, comments, et ...
Posted by ravi.kinjarapu on Thu, 28 Oct 2021 17:51:57 -0700
Sharing of interview questions from large factories: how to make the value of (a = = 1 & & A = = 2 & & A = = 3) true?
When I first saw this topic, I was shocked. I analyzed that it was very unreasonable for us to program, and thought it was impossible. Variable a should be equal to the three values of 1, 2 and 3 at the same time under the same situation. This is a myth, no less than Goldbach's conjecture of 1 + 1 = 1, but everything is possible. Out of curiosi ...
Posted by callesson on Thu, 28 Oct 2021 15:29:30 -0700
Vue3 + Typescript implements a web version of greedy snake by yourself
preface
I still remember when I was just in college, in the first programming class, the teacher said, "don't let me catch you playing games, otherwise you will write what you play.". I didn't know anything and didn't dare to play.
If I can go back to that class now, I can play with my greedy snake unscrupulously. If she catches me, ...
Posted by andco on Thu, 28 Oct 2021 08:21:47 -0700