跳到内容

特性

JavaScript 的新 Set 和 Object 特性虽然还没有普遍采用,但它们将为开发者提供更好的解决方案,减少了对第三方工具库的依赖。

我们现在还会在可用时显示每个功能的基线状态 (Baseline):绿色表示“普遍可用”,蓝色表示“新推出”,白色表示“有限可用”。

0%
20%
40%
60%
80%
100%
1

11,467
2

9,060
3

6,080
4

5,865
5

2,639
6

2,370
7

668
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些语法特性?

字符串特性

0%
20%
40%
60%
80%
100%
1

9,859
2

5,887
3

3,534
4

2,156
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些字符串特性?
0%
20%
40%
60%
80%
100%
1

4,940
2

3,954
3

3,925
4

2,374
5

1,651
6

603
7

4,803
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些数组特性?
0%
20%
40%
60%
80%
100%
1

5,813
2

5,302
3

1,855
4

13
5

3,842
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些异步特性?
0%
20%
40%
60%
80%
100%
1

1,800
2

1,715
3

1,687
4

877
5

528
6

364
7

295
8

8,632
0%
20%
40%
60%
80%
100%
受访者百分比
Which of these Set features have you used?

Object Features

0%
20%
40%
60%
80%
100%
1

3,620
2

7,299
0%
20%
40%
60%
80%
100%
受访者百分比
Which of these Object features have you used?
我们询问了 JavaScript 社区的成员,分享他们的“年度选择”

我的 2024 选择: TanStack

Tanstack, a banquet of practical, high quality, battle tested libraries, culminating in the TanStack Start framework.
我们询问了 JavaScript 社区的成员,分享他们的“年度选择”
0%
20%
40%
60%
80%
100%
1

7,982
2

6,291
3

4,502
4

2,457
5

2,393
6

2,314
7

2,312
8

1,924
9

1,509
10

1,259
11

1,258
12

1,186
13

398
14

184
15

过滤掉的答案

6
16

1,733
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些浏览器 API?

当被问及他们最头疼 JavaScript 的哪一方面时,绝大多数受访者都提到了缺乏内置类型系统,浏览器支持问题则排在第二位。

0%
20%
40%
60%
80%
100%
1

Static typing

2

Browser support

3

Dates

4

TypeScript support

5

ESM & CJS

6

Error handling

7

Performance

8

Async programming

9

Standard Library

10

Security

0%
20%
40%
60%
80%
100%
受访者百分比
关于 JavaScript 语言,您的主要痛点是什么?
(自由提问)

浏览器 API 的痛点

不出所料,浏览器支持不力是浏览器及其 API 方面的最大障碍。Safari 也被强调为一个共同的痛点,浏览器功能文档的整体缺乏也是如此。

0%
20%
40%
60%
80%
100%
1

Browser support

3

Lack of documentation

4

Performance

5

Excessive complexity

6

Firefox issues

7

<input type="date">

8

10

DOM API

0%
20%
40%
60%
80%
100%
受访者百分比
在浏览器 API 方面,您的主要痛点是什么?
(自由提问)
我们询问了 JavaScript 社区的成员,分享他们的“年度选择”

我的 2024 选择: Arisa Fukuzaki

Arisa is am amazing tech educator, mentor, docs & DevRel engineer who's super passionate about JS frameworks, community work and supporting women in tech. She's one to watch!
我们询问了 JavaScript 社区的成员,分享他们的“年度选择”

阅读列表可让您保存调查完成后想了解的项目。 今年,error.cause、逻辑赋值和 Object.groupBy() 是最能引发受访者好奇心的功能。

0%
20%
40%
60%
80%
100%
1

1,560
2

1,379
3

1,347
4

1,219
5

1,216
6

1,165
7

1,112
8

1,048
9

999
10

957
0%
20%
40%
60%
80%
100%
受访者百分比
每个项目被添加到受访者阅读列表的次数,该功能可让受访者在参与调查时了解更多有关特定主题的信息。
Advanced Web Development Quiz
Lydia Hallie

Advanced Web Development Quiz

Challenge your knowledge with a quiz on the advanced parts of web development! You’ll answer 30 questions spanning a wide range of front-end development concepts, from JavaScript and CSS to delving into the more complex areas of performance optimization, web security, and HTTP protocols.
JavaScript: The Hard Parts, v2
Will Sentance
Codesmith

JavaScript: The Hard Parts, v2

Combining mental models of JavaScript's inner workings and hands-on programming challenges, this course will give you a solid understanding of callbacks and higher-order functions, closure, asynchronous JavaScript, and object-oriented JavaScript.
感谢合作伙伴对我们的支持! 了解更多。