forked from Advanced-Frontend/Daily-Interview-Question
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.md
More file actions
261 lines (127 loc) · 5.42 KB
/
Copy pathREADME.md
File metadata and controls
261 lines (127 loc) · 5.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
# Daily-Interview-Question
加入前端「壹题」学习小组,尽在公众号「高级前端进阶」,进阶共勉之!
工作日每天一道大厂前端面试题,一年后再回头,会感谢曾经努力的自己!
[线上版本阅读更流畅,点击阅读](https://muyiy.cn/question/)
<br/>
## 今日面试题
2019-09-04
> 第 137 题:如何在 H5 和小程序项目中计算白屏时间和首屏时间,说说你的思路
>
解析:[第 137 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/272)
<br/>
## 本周汇总
2019-09-03
> 第 136 题:如何实现骨架屏,说说你的思路
解析:[第 136 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/270)
<br/>
2019-09-02
> 第 135 题:算法题(盛大)
>
> 在一个字符串数组中有红、黄、蓝三种颜色的球,且个数不相等、顺序不一致,请为该数组排序。使得排序后数组中球的顺序为:黄、红、蓝。
>
> 例如:红蓝蓝黄红黄蓝红红黄红,排序后为:黄黄黄红红红红红蓝蓝蓝。
解析:[第 135 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/266)
<br/>
2019-08-30
> 第 134 题:求两个日期中间的有效日期
>
> 如 2015-2-8 到 2015-3-3,返回【2015-2-8 2015-2-9...】
解析:[第 134 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/264)
<br/>
2019-08-29
> 第 133 题:用 setTimeout 实现 setInterval,阐述实现的效果与 setInterval 的差异
解析:[第 133 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/259)
<br/>
2019-08-27
> 第 132 题:实现一个 Dialog 类,Dialog可以创建 dialog 对话框,对话框支持可拖拽(腾讯)
解析:[第 132 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/257)
<br/>
2019-08-26
> 第 131 题:接口如何防刷
解析:[第 131 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/254)
<br/>
2019-08-23
> 第 130 题:输出以下代码执行结果,大致时间就好(不同于上题)
>
> ```js
> function wait() {
> return new Promise(resolve =>
> setTimeout(resolve, 10 * 1000)
> )
> }
>
> async function main() {
> console.time();
> await wait();
> await wait();
> await wait();
> console.timeEnd();
> }
> main();
> ```
解析:[第 130 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/253)
<br/>
2019-08-22
> 第 129 题:输出以下代码执行结果
>
> ```js
> function wait() {
> return new Promise(resolve =>
> setTimeout(resolve, 10 * 1000)
> )
> }
>
> async function main() {
> console.time();
> const x = wait();
> const y = wait();
> const z = wait();
> await x;
> await y;
> await z;
> console.timeEnd();
> }
> main();
> ```
解析:[第 129 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/251)
<br/>
2019-08-20
> 第 128 题:Http 状态码 301 和 302 的应用场景分别是什么
解析:[第 128 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/249)
<br/>
2019-08-19
> 第 127 题:如何用 css 或 js 实现多行文本溢出省略效果,考虑兼容性
解析:[第 127 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/246)
2019-08-15
> 第 126 题:扑克牌问题
>
> 有一堆扑克牌,将牌堆第一张放到桌子上,再将接下来的牌堆的第一张放到牌底,如此往复;
>
> 最后桌子上的牌顺序为: (牌底) 1,2,3,4,5,6,7,8,9,10,11,12,13 (牌顶);
>
> 问:原来那堆牌的顺序,用函数实现。
解析:[第 126 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/245)
<br/>
2019-08-13
> 第 125 题:如何将`[{id: 1}, {id: 2, pId: 1}, ...]` 的重复数组(有重复数据)转成树形结构的数组 `[{id: 1, child: [{id: 2, pId: 1}]}, ...]` (需要去重)
解析:[第 125 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/243)
<br/>
2019-08-12
> 第 124 题:永久性重定向(301)和临时性重定向(302)对 SEO 有什么影响
解析:[第 124 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/241)
<br/>
## 所有面试题汇总
- [壹题所有题目及答案汇总](https://github.com/Advanced-Frontend/Daily-Interview-Question/blob/master/datum/summary.md)
<br/>
## 半月刊
- [前端 100 问:能搞懂 80% 的请把简历给我](https://github.com/yygmind/blog/issues/43)
- [【半月刊 1】前端高频面试题及答案汇总](https://juejin.im/post/5c6977e46fb9a049fd1063dc)
- [【半月刊 2】前端高频面试题及答案汇总](https://juejin.im/post/5c7bd72ef265da2de80f7f17)
- [【半月刊 3】前端高频面试题及答案汇总](https://juejin.im/post/5c9ac3f66fb9a070e056718f)
- [【半月刊 4】前端高频面试题及答案汇总](https://juejin.im/post/5cb3376bf265da039c0543da)
<br/>
## 联系我
进阶系列文章汇总如下,觉得不错点个 star,欢迎 **加群** 互相学习。
> [https://github.com/yygmind/blog](https://github.com/yygmind/blog)
我是木易杨,公众号「高级前端进阶」作者,跟着我**每周重点攻克一个前端面试重难点**。接下来让我带你走进高级前端的世界,在进阶的路上,共勉!
