vue2 responsive principle level
Interview question: please explain the principle of vue2 response
vue official statement: cn.vuejs.org/v2/guide/re...
The ultimate goal of responsive data is to run some functions when the object itself or object properties change, the most common being the render function.
In the specific implementation, vue uses several core compone ...
Posted by crunchyfroggie on Wed, 24 Nov 2021 11:42:23 -0800
Learn fetch and start here
1, What is fetch()?
fetch() is the browser's built-in global JavaScript method. It is used to issue http requests. It can be used directly without downloading and installing.
// A simple http request
fetch('http://example.com/movies.json')
.then(function (response) {
return response.json();
})
.then(function (myJson) {
...
Posted by snowrhythm on Wed, 24 Nov 2021 08:36:22 -0800
Typeof Type Operator of TypeScript
prefaceThe official documents of TypeScript have already been updated, but the Chinese documents I can find are still in the older version. Therefore, some newly added and revised chapters are translated and sorted out.This article is compiled from "TypeScript Handbook" Typeof Type Operator "Chapter.This article is not translated ...
Posted by asmon on Wed, 24 Nov 2021 05:32:07 -0800
Knowledge points of reason 4 (react router)
prefaceIt took some time to sort out the react router system, including the functional principles and basic implementation methods of common components. The code posted in this paper is the implementation of the core principles of each component, which will be slightly different from the source code. Please note that the source code address has ...
Posted by irishred8575 on Wed, 24 Nov 2021 03:18:18 -0800
nodejs -- modularization, module scope, several methods of exporting data, package, package management, custom package, module loading mechanism
1, First knowledge modularization
Modularization is the process of dividing the system into several modules from top to bottom when solving a complex problem. For the whole system, modularization is a unit that can be combined, disassembled and replaced.
Modularization in the field of programming is to abide by the inherent rules and divi ...
Posted by NiGHTFiRE on Wed, 24 Nov 2021 01:51:08 -0800
W3C standard induction
W3C standard induction
reference resources: https://www.w3cschool.cn/xuexiw3c/xuexiw3c-standards.html
1. Discard font label
In the future, we will discard the font tag. The new page should not appear again. For example, the existing old page should also be replaced as much as possible during modification. Alternative method: < span cl ...
Posted by zingbats on Wed, 24 Nov 2021 00:54:35 -0800
Front end learning notes: JavaScript classes and objects
Black horse Pink's advanced javaScript object-oriented ES6 tutorial: https://www.bilibili.com/video/BV1Kt411w7MP?p=1
Based on the original tutorial, this paper sorts and cuts the directory structure. This paper summarizes the explanations, cases, PPT and source materials in the video, which are only used for personal review, learning, communic ...
Posted by Bhaal on Wed, 24 Nov 2021 00:53:26 -0800
Introduction to Svelte -- implementing cross framework component reuse with Web Components
Svelte is a new method of building Web applications. It has been tepid since its launch. It has not become the fourth largest framework after Angular, React and VUE, but it has not lost its popularity and nobody cares. An important reason for this is that svelte's core idea is to reduce the amount of code in the framework runtime through static ...
Posted by sureshp on Tue, 23 Nov 2021 20:49:34 -0800
VUE Interview Questions Summary
Previous points here: ↓ Summary of VUE interview questions (I) 11. What is the difference between v-if and v-show
Reference answer:
The v-show instruction allows an element to be displayed or hidden by modifying the CSS attribute of its display
The v-if instruction directly destroys and rebuilds the DOM to achieve the effect of ...
Posted by gofer on Tue, 23 Nov 2021 19:31:19 -0800
[vue3.0 actual combat step by step series] vue3.0 obtains the questionnaire results and outputs them to the console
preface
Hello, guys, hello. Yesterday, we made a simple extension to the original voting function: we realized a simple questionnaire function. When implementing the questionnaire function, we encapsulated several different types of components: voting component, single choice component, multiple choice component, input component and scoring ...
Posted by dominicd on Tue, 23 Nov 2021 18:07:01 -0800