Web front end interview question: shallow copy and deep copy, and use recursion to realize deep copy

Shallow copy and deep copy JS data type First, we need to understand the data types of JS. JS data types are divided into "basic data type" and "reference data type", such as subscript Basic data typeReference data typenumberObkect (function)stringbooleanundefinednullSymbol (new in ES6)Bigint (new in ES10) Memory Then we ...

Added by frans-jan on Tue, 22 Feb 2022 12:57:59 +0200

CSS cascading style sheet

1.1 CSS introduction Limitations of HTML: only focus on the semantics of content.CSS: cascading style sheet, CSS style sheet or cascading style sheet.CSS is also a markup language, which is mainly used to set the text content, image shape, layout and appearance display style of HTML page.Composition of CSS: selector and one or more declarati ...

Added by dearmoawiz on Tue, 22 Feb 2022 10:32:40 +0200

One year experience interview tiktok, electricity supplier, share the following!

prefaceHello, I am Lin three heart, and the most difficult point to use the most understandable tiktok is my motto. The premise is that my first heart is to be advanced. I share a year's experience of bypassing the electric business.one side1. Introduce yourself?slightly2. Ask projectslightly3. leetcode question 112, "path sum"const h ...

Added by shaundunne on Tue, 22 Feb 2022 09:03:17 +0200

[Vue] Vue life cycle and its hook function

Each Vue instance must go through a series of initialization processes before being created. This process is the Vue life cycle. vue2. Lifecycle hook functions for 0 (10) beforeCreate: After instance initializationData observer and event/watcher events have not been configured yet. created: Called after the instance has been crea ...

Added by kfir91 on Tue, 22 Feb 2022 06:58:53 +0200

SVG draw circle progress bar

In our large screen visualization project, we often use a variety of charts. Compared with the traditional table display and boring text description, the chart display makes the user look more intuitive and the data display more clear at a glance. Based on svg drawing technology and front-end technology stack vue, this paper briefly expounds so ...

Added by MAXIEDECIMAL on Tue, 22 Feb 2022 04:02:35 +0200

[front end] Vue system

Vue 3.0 1, Introduction to Vue3 1. Vue3 introduction September 18, 2020, Vue JS release version 3.0, code: One Piece (pirate king) 2. What does vue3 bring Performance improvement Package size reduced by 41%55% faster for initial rendering and 133% faster for update rendering54% less memory Upgrade of source code Using Proxy instead o ...

Added by dfarrar on Tue, 22 Feb 2022 03:17:16 +0200

Vue.js, deep monitoring of watch

Because of Xiaobian's marriage and family affairs. I stopped updating for a long time. Today, Xiaobian came back again. Today, let's take you to learn about Vue Use of watch listening events in JS. Usage of handler and immediate <div> <h2>It's a fine day today{{info}}</h2> <button @click="isHot = !isHot">Po ...

Added by ttroutmpr on Mon, 21 Feb 2022 16:16:01 +0200

Vue framework 2.0 Basics (5) components and communication between components

Component: a reusable Vue instance with a name and accepts the same option objects, such as data, computed, watch, methods, and life cycle hooks. The only exception is options specific to root instances like el. Function: components can be reused any number of times. Each component maintains itself independently. Because every time a compone ...

Added by keveen on Mon, 21 Feb 2022 15:47:12 +0200

React component lifecycle

In version 17.0.1, React has modified the life cycle of components. The new life cycle and the old life cycle have not changed much. The new life cycle has added two new hook functions, and three hook functions are outdated.   1, Old life cycle The life cycle of components can be divided into three stages: initialization stage, update st ...

Added by atravotum on Mon, 21 Feb 2022 15:29:03 +0200

Vue3 quick start

Vue3 quick start (I) Personal blog: Vue3 quick start (I) After the internship and entering the company, after simply installing vscode, node, git and other necessary tools, the tutor directly asked if he had studied vue3. After saying that he had only studied vue2, he shared two articles with me and asked me to check the documents to quickly ...

Added by shauny17 on Mon, 21 Feb 2022 15:12:06 +0200