当前位置:网站首页>Characteristics of ES6 arrow function
Characteristics of ES6 arrow function
2022-06-25 05:05:00 【I am Feng Feng Yi】
- No,
this
,arguments
,new.target
, It is the outer layer of the function when declaring the arrow functionthis
,arguments
,new.target
- There is no prototype prototype, Cannot be used as a constructor
- The arrow function must be anonymous
Arrow functions can be used in almost every function expression .
Another point , When the arrow function is defined ,this The direction of is clear .
const func = () => {
console.log(this); // In non strict mode, it is a global object The strict pattern is undefined
}
func.call({
a : 1});
边栏推荐
- H5 canvas drawing circle drawing fillet [detailed explanation]
- 2021-10-24
- [relax's law of life lying on the square] those poisonous chicken soup that seem to be too light and too heavy, but think carefully and fear
- Triangle class (construction and deconstruction)
- H5 native player [learn video]
- Laravel's little knowledge
- Visual studio 2022 interface beautification tutorial
- Prototypical Networks for Few-shot Learning
- Mobile number regular expression input box loses focus verification
- Virtual honeypot Honeyd installation and deployment
猜你喜欢
How micro engine uploads remote attachments
Detailed summary of position positioning
SQL lab range explanation
A review of small sample learning
Customize the console plot result style
Activereportsjs V3.0 comes on stage
Laravel's little knowledge
本轮压力测试下,DeFi协议们表现如何?
Introduction to the hardest core PWN in the whole network_ Graphic analysis
【图像融合】基于matlab方向离散余弦变换和主成分分析图像融合【含Matlab源码 1907期】
随机推荐
CTFHUB SSRF
Notes on non replacement elements in the line (padding, margin, and border)
My IC journey - the growth of senior chip design verification engineers - "Hu" said that IC engineers are perfect and advanced
In Net 6 using dotnet format formatting code
SQL lab range explanation
February 19 CTF exercise
【图像融合】基于matlab方向离散余弦变换和主成分分析图像融合【含Matlab源码 1907期】
OLAP analysis engine kylin4.0
Implementation of websocket long connection by workman under laravel
Kotlin compose listens to the soft keyboard and clicks enter to submit the event
epplus复制模板后打印区域变小的问题
Array: force deduction dichotomy
Difference between asemi high power FET and triode
Creation and use of MySQL index
parallel recovery slave next change & parallel recovery push change
Prototypical Networks for Few-shot Learning
Svg code snippet of loading animation
API interface management setup -eolinker4.0
Detailed summary of float
Ctfhub eggs