JS advanced part

JS advanced part judgeObject reference typeResearch on undefined and nullDistinguish between variable types and data typesData, variables and memoryjs function parameters are passed as valuesHow does JS engine manage memoryJS object When to use ['attribute name'] and when to use it JS function object The difference between call and apply ...

Posted by Runnion on Thu, 03 Mar 2022 08:36:51 +0100

Sorting out javascript object knowledge points

Article reference https://www.w3school.com.cn/js/js_object_definition.asp JavaScript object definition In js, almost everything is an object: Booleans are objects (if defined with the new keyword) Numbers are objects (if defined with the new keyword) A string is an object (if defined with the new keyword) Dates are always objects Arithm ...

Posted by simshaun on Thu, 03 Mar 2022 08:25:11 +0100

TypeScript advanced usage

hi, bean skin powder, meet you again today. This issue shares the advanced use of TypeScript brought by bytedancer "little blacksmith in Milan",It is applicable to students who have known TypeScript or have actually used it for a period of time,This article systematically introduces the function points of common TypeScript from the pe ...

Posted by lutzlutz896 on Thu, 03 Mar 2022 08:10:12 +0100

Vue builds mobile news pages

catalogue preface 1, API s and components used 2, Page description         1. Page display         2. Install vant UI         3. Import aggregate data 3, Code snippet          3.1 App.vue 3.2 router/index.js 3.3 axiosServer/config ...

Posted by Pnop on Thu, 03 Mar 2022 07:25:42 +0100

Station B -- [crazy God says Java] Introduction to JavaWeb to actual combat -- Notes

Most of the notes are taken when station B meets the javaWeb said by crazy God. By the way, the pictures and texts are combined and recorded for easy review Video address: https://www.bilibili.com/video/BV12J411M7Sj Remember Sanlian Article catalogue 1. Basic concepts 1.1 Preface1.2. Web application web application:1.3. Static web1.4 ...

Posted by srdva59 on Thu, 03 Mar 2022 05:31:24 +0100

Understand object Defineproperty and Proxy, vue3 Why does 0 use Proxy?

preface During the interview a few days ago, the interviewer asked this question and felt that he didn't answer it very well. I'll sort it out here~ The length of the article will be relatively long, but after reading it, you will gain a lot ~ I hope you keep reading it~ Object.defineProperty() Function: define a new property on an object, o ...

Posted by norbie on Thu, 03 Mar 2022 05:27:36 +0100

Five tips for JSON in JavaScript

Some tips about JavaScript JSON1. FormatThe default stringer also shrinks JSON, which looks uglyconst user = { name: 'John', age: 30, isAdmin: true, friends: ['Bob', 'Jane'], address: { city: 'New York', country: 'USA' } }; console.log(JSON.stringify(user)); //=> {"name":"John","age":30,"isAdmin":true,"friends":["Bob","Ja ...

Posted by troy_mccormick on Thu, 03 Mar 2022 04:22:30 +0100

The interviewer asked: what is your understanding of cookie s?

Foreword: I believe junior front-end engineers will think of local storage and sessionStorage. Then I will answer the difference between the three. Please, these are not the key information that the interviewer wants to get. Cookies belong to the basic knowledge of computer networks. Next, let's unveil the mystery of cookie s from Baidu Encyclo ...

Posted by IndianaRogers on Thu, 03 Mar 2022 04:09:28 +0100

Sorting out of design mode - factory mode

Factory pattern is a design pattern used to create objects. We do not expose the logic of object creation, but encapsulate the logic in a function, so this function can become a factory. Factory patterns can be divided into: 1 Simple factory 2 Factory method 3 Abstract factory Simple factory Simple factory pattern is very easy to understand ...

Posted by savagenoob on Wed, 02 Mar 2022 16:39:41 +0100

The basic syntax of css & selector

1. How to use CSS in html Cascading style sheet css a. in line style Define a style attribute on the element and write the style in the style attribute b. inline style Define a style tag in the header of html and write the style in the style tag c. external style Define an external with For files with css suffix, use the link tag in the header ...

Posted by Pro.Luv on Wed, 02 Mar 2022 13:19:12 +0100