Vue -- options -- use / tutorial / instance

Original website: brief introduction explain         This article illustrates the use of Vue's options with examples. Includes: combination options and other options.         The combination options will be introduced: mixin, provide/inject; Other options are described: inheritAttrs. Official websi ...

Posted by ceci on Sat, 06 Nov 2021 19:10:30 -0700

JavaScript simple meal -- Proxy and reflection

preface The purpose of writing this series of articles on JavaScript simple meal is to record various knowledge points when reading and learning the book JavaScript advanced programming (4th Edition). Although it is a note and summary of reading, I hope it is light, concise and sharp, will not cause reading fatigue, and can take a light ...

Posted by Jay_Seagrave on Sat, 06 Nov 2021 16:39:30 -0700

Take you into the branch statement from zero understanding JavaScript to essence JavaScript

Take you to understand JavaScript from zero to essence (V) JavaScript branch statements 1, What are JavaScript statements Expressions are phrases in JavaScript. A newline phrase or a semicolon ending phrase is a line of statements. A command issued by a JavaScript statement to a browser. Statement tells the browser what to do. Statements usua ...

Posted by merck_delmoro on Sat, 06 Nov 2021 11:47:17 -0700

Design pattern [3.2] - how fragrant is JDK dynamic agent source code analysis?

The previous article mentioned the agent mode: http://aphysia.cn/archives/dy...So in retrospect, how did the agent model come from? Suppose you have a requirement:Print the log before and after all controller classes in the system call methods.Suppose the original code:public class Person{ public void method(){ // Represent your bus ...

Posted by shadysaiyan on Sat, 06 Nov 2021 11:29:09 -0700

Interface in 03ts

1, Object type object represents a non primitive type, that is, a type other than number, string, boolean, symbol, null or undefined. object types can take several forms: object typeArray typeClass typeFunction type These forms are called object types in TypeScript. 1. Object type: For example, we write an object that represents the basic ...

Posted by maliskoleather on Sat, 06 Nov 2021 09:18:59 -0700

The Promise object in JS solves the detailed explanation of callback hell cases and allows the code to execute synchronously

Promise object, solve callback hell, and execute code synchronously This article records the knowledge points studied BY: Lin Yi preface: Asynchronous operation is an advantage of JS and brings great trouble. There is a word called callback hell, that is, in a callback function, execute another asynchronous task and nest it all the time, res ...

Posted by nivosh on Sat, 06 Nov 2021 06:57:02 -0700

Red Treasure Book Reading Notes Chapter 4

Variable scope memory The es variable has two different types of data: original value and reference value Original values: undefined, null, boolean, number, string, symbol The variable that holds the original value is accessed by value Reference value: an object stored in memory. It is an object composed of multiple values. JavaScript cannot d ...

Posted by Smruthi on Sat, 06 Nov 2021 05:36:34 -0700

Code clipping algorithm for line segment

Code clipping algorithm for line segment For example, many uneven straight-line segments are distributed on a canvas, and we want to find a rectangular window on the canvas and only want to get the straight-line segments in the rectangular window. How should we achieve this? We know that the straight line segment can be expressed by a para ...

Posted by Jeyush on Fri, 05 Nov 2021 23:45:29 -0700

vue unit test

vue unit test vue unit_test jest Refer to the official website description https://vue-test-utils.vuejs.org/zh/installation/ 1. Browser environment npm install --save-dev jsdom jsdom-global // In the setting / entry of the test (this sentence is wrong, don't worry about it) require('jsdom-global')() 2. The first thing we need t ...

Posted by jorje on Fri, 05 Nov 2021 21:39:38 -0700

Communication mode between Vue components (easy to understand)

The existence of components, like encapsulating a function or creating a package that can realize some functions, has the advantages of reuse, maintenance and avoiding variable pollution For components, encapsulation is a complete set, including HTML, CSS and JS. It realizes a complete set of reuse. In order to facilitate modifying the content ...

Posted by FarhanKhalaf on Fri, 05 Nov 2021 21:03:54 -0700