当前位置:网站首页>Operation of ES6
Operation of ES6
2022-07-04 04:22:00 【Careteen】
Catalog
- var function
- var The problem is
- Variable promotion ( First of all , Will not copy )
- There is no block-level scope , Is global scope / Function scope
- var The problem is
- let const
- let The advantages of
- No variable promotion , Cannot be defined repeatedly , Does not pollute global variables
- Hui He {} Generate scope
- let There are certain problems
- let The advantages of
let a = 2
{
console.log(a)
let a =1
}
// undefined- const
- let You can reassign const Cannot change the assigned space
const a = 1 a = 2 // Report errors const b = [] b.push(1) // The normal operation
- Extension operator
- Sum any number
- ES5 Realization slice
- ES6... Realization
- Merge two arrays
- ES5 Realization concat
- ES6... Realization
- Merge two objects
- The problem is ( Deep copy 、 Shallow copy )
- Deep copy The copy is not a reference address
- ... Only one layer can be expanded, which is a shallow copy , It needs recursive processing
- JSON.parse It can be solved simply
- JSON There are certain problems
- Can handle null/date
- Cannot handle regular 、 function
- Based on the above considerations, realize a deep copy ...
- Sum any number
- Deconstruct assignment
- Object to deconstruct
- An array of deconstruction
- Arrow function arrowFn
- No, this
- No, argument
- Object.defineProperty
- Use
- application
- vue2.0 Implement data bidirectional binding
- shortcoming
- Cannot detect array
- proxy、reflect
- application
- vue3.0 Rewrite data bidirectional binding
- shortcoming
- Poor compatibility
- advantage
- Can detect array
- Deep monitoring ( It can be recursive )( Think for yourself )
- application
- class class
- ES5 knowledge
- proto Looking for the prototype of the class , All types
- prototype This is the prototype , Only constructors have prototypes
- Inherit
- Inherit properties on instances
- call
- Inherit public attributes
- Object.create
- Child.prototype = Object.create(Parent.prototype, { constructor: { value: Child } })
- ES5 How to achieve
- All of them
- call + Prototype inheritance
- Inherit properties on instances
- ES6 Class
- Translate it into ES5 The appearance of
- ES5 knowledge
- Decorator
- Decoration
- Attributes in the decoration class
- Methods in decorating classes
- Cannot decorate functions , Because the function has variable promotion
- Set/Map
- API List
- Interview questions
- The union of two arrays
- Find the intersection of two arrays
- Difference set of two arrays
- Array method
- findIndex
- reduce
- application
- Array sum
- Combine compose
- application
边栏推荐
- Huawei cloud Kunpeng engineer training (Guangxi University)
- leetcode刷题:二叉树04(二叉树的层序遍历)
- [microservice openfeign] use openfeign to remotely call the file upload interface
- Distributed system: what, why, how
- Leetcode brush questions: binary tree 05 (flip binary tree)
- Configuration and hot update of nocturnal simulator in hbuildx
- Unity draws the trajectory of pinball and billiards
- How was my life in 2021
- Katalon中控件的参数化
- 【微服务|openfeign】feign的两种降级方式|Fallback|FallbackFactory
猜你喜欢

Flink学习8:数据的一致性

【罗技】m720

Parameterization of controls in katalon

Graduation project: design seckill e-commerce system

Leetcode skimming: binary tree 09 (minimum depth of binary tree)

NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线

2021 RSC | Drug–target affinity prediction using graph neural network and contact maps

分布式系统:what、why、how

Ppt tutorial, how to save a presentation as a PDF file in PowerPoint?

【微服务|openfeign】@FeignClient详解
随机推荐
Brief explanation of depth first search (with basic questions)
PPt 教程,如何在 PowerPoint 中将演示文稿另存为 PDF 文件?
dried food! Generation of rare samples based on GaN
【罗技】m720
Flink learning 7: application structure
Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure
SDP中的SPA
How to add custom API objects in kubernetes (1)
【微服务|openfeign】使用openfeign远程调用文件上传接口
Pointer array and array pointer
leetcode刷题:二叉树07(二叉树的最大深度)
【微服务|openfeign】feign的两种降级方式|Fallback|FallbackFactory
网络 - VXLAN
RHCSA 06 - suid, sgid, sticky bit(待补充)
资深开发人员告诉你,怎样编写出优秀的代码?
The interactive solution of JS and app in the H5 page embedded in app (parameters can be transferred and callbacks can be made)
What does software testing do? Find defects and improve the quality of software
Redis cluster view the slots of each node
RHCSA 03 - 文件的基础权限
How was my life in 2021