18
18
1 . [ 有趣的问题] ( #fun )
19
19
1 . [ 其他参考资料] ( #references )
20
20
21
- ####<a name =' contributors ' >最初的贡献者: </a >
21
+ ####[[ ⬆ ]] ( #toc ) <a name =' contributors ' >最初贡献者 </a >
22
22
23
- ** 备注: ** 这里大部分的面试题都摘抄自 [ Paul Irish] ( http://paulirish.com ) ([ @paul_irish] ( http://twitter.com/paul_irish ) ) 在 [ oksoclap] ( http://oksoclap.com/ ) 创建的帖子,这份原帖的贡献者还有:
23
+ 这里大部分的面试题都摘抄自 [ Paul Irish] ( http://paulirish.com ) ([ @paul_irish] ( http://twitter.com/paul_irish ) ) 在 [ oksoclap] ( http://oksoclap.com/ ) 创建的帖子,这份原帖的贡献者还有:
24
24
25
25
* [ @bentruyman ] ( http://twitter.com/bentruyman ) - http://bentruyman.com
26
26
* [ @cowboy ] ( http://twitter.com/cowboy ) - http://benalman.com
32
32
* [ @gf3 ] ( http://twitter.com/gf3 ) - http://gf3.ca
33
33
* [ @jon_neal] ( http://twitter.com/jon_neal ) - http://twitter.com/jon_neal
34
34
* [ @wookiehangover ] ( http://twitter.com/wookiehangover ) - http://wookiehangover.com
35
- * [ @iansym ] ( http://twitter.com/iansym ) - http://twitter.com/iansym
35
+ * [ @darcy_clarke] ( http://twitter.com/darcy ) - http://darcyclarke.me
36
+ * [ @iansym ] ( http://twitter.com/iansym )
36
37
37
38
38
- ####<a name =' general ' >常见问题:</a >
39
+ ####[[ ⬆ ]] ( #toc ) <a name =' general ' >常见问题:</a >
39
40
40
41
* 你在昨天/本周学到了什么?
41
42
45
46
46
47
* 谈谈你喜欢的开发环境。(例如操作系统,编辑器,浏览器,工具等等。)
47
48
49
+ * 你最熟悉哪一套版本控制系统?
50
+
48
51
* 你能描述一下当你制作一个网页的工作流程吗?
49
52
50
53
* 你能描述一下渐进增强和优雅降级之间的不同吗?
78
81
79
82
* 如果今年你打算熟练掌握一项新技术,那会是什么?
80
83
84
+ * Long-Polling, Websockets, SSE(Server-Sent Event) 之间有什么区别?
85
+
81
86
* 请谈一下你对网页标准和标准制定机构重要性的理解。
82
87
83
88
* 什么是 FOUC(无样式内容闪烁)?你如何来避免 FOUC?
84
89
85
- ####<a name =' html ' >HTML相关问题:</a >
90
+ * 请尽可能完整得描述下从输入URL到整个网页加载完毕及显示在屏幕上的整个流程
91
+
92
+ ####[[ ⬆]] ( #toc ) <a name =' html ' >HTML相关问题:</a >
86
93
87
94
* ` doctype ` (文档类型)的作用是什么?
88
95
100
107
101
108
* 请描述一下 cookies,sessionStorage 和 localStorage 的区别?
102
109
110
+ * 请描述一下 ` GET ` 和 ` POST ` 的区别?
111
+
103
112
####<a name =' css ' >CSS 相关问题:</a >
104
113
105
114
* 描述下 “reset” CSS 文件的作用和使用它的好处。
139
148
140
149
* 解释一下你对盒模型的理解,以及如何在 CSS 中告诉浏览器使用不同的盒模型来渲染你的布局。
141
150
151
+ * 请解释一下 ``` * { Box-sizing: Border-box; } ``` 的作用, 并且说明使用它有什么好处?
152
+
153
+ * 请罗列出你所知道的 display 属性的全部值
154
+
155
+ * 请解释一下 inline 和 inline-block 的区别?
156
+
157
+ * 请解释一下 relative、fixed、absolute 和 static 元素的区别
142
158
143
- ####<a name =' js ' >JS相关问题:</a >
159
+ * 你目前在使用哪一套CSS框架,或者在产品线上使用过哪一套?(Bootstrap, PureCSS, Foundation 等等)
160
+ * 如果有,请问是哪一套?如果可以,你如何改善CSS框架?
161
+
162
+ * 请问你有使用过 CSS Flexbox 或者 Grid specs 吗?
163
+ * 如果有,请问在性能和效率的方面你是怎么看的?
164
+
165
+ ####[[ ⬆]] ( #toc ) <a name =' js ' >JS相关问题:</a >
144
166
145
167
* 解释下事件代理。
146
168
@@ -232,7 +254,7 @@ var person = new Person();
232
254
233
255
* 什么是 ` "use strict"; ` ? 使用它的好处和坏处分别是什么?
234
256
235
- ####<a name =' jquery ' >jQuery 相关问题:</a >
257
+ ####[[ ⬆ ]] ( #toc ) <a name =' jquery ' >jQuery 相关问题:</a >
236
258
237
259
* 解释"chaining"。
238
260
@@ -260,14 +282,13 @@ var person = new Person();
260
282
$ (" .foo div#bar:eq(0)" )
261
283
```
262
284
263
- ####<a name =' jscode ' >代码相关的问题:</a >
285
+ ####[[ ⬆ ]] ( #toc ) <a name =' jscode ' >代码相关的问题:</a >
264
286
265
287
``` javascript
266
- ~~ 3.14
288
+ modulo ( 12 , 5 ) // 2
267
289
```
268
290
269
- 问题:上面语句的返回值是什么?
270
- ** 答案:3**
291
+ 问题:实现满足上述结果的modulo函数
271
292
272
293
``` javascript
273
294
" i'm a lasagna hog" .split (" " ).reverse ().join (" " );
@@ -300,15 +321,7 @@ foo.push(2);
300
321
问题:foo.length 的值是什么?
301
322
** 答案:` 2 ` **
302
323
303
- ``` javascript
304
- var foo = {};
305
- foo .bar = ' hello' ;
306
- ```
307
-
308
- 问题:foo.length 的值是什么?
309
- ** 答案: ` undefined ` **
310
-
311
- ####<a name =' fun ' >有趣的问题:</a >
324
+ ####[[ ⬆]] ( #toc ) <a name =' fun ' >有趣的问题:</a >
312
325
313
326
* 你编写过的最酷的代码是什么?其中你最自豪的是什么?
314
327
@@ -318,8 +331,10 @@ foo.bar = 'hello';
318
331
319
332
* 你最爱的 IE 特性是什么?
320
333
321
- ####<a name =' references ' >其他参考资料: </a >
334
+ ####[[ ⬆ ]] ( #toc ) <a name =' references ' >其他参考资料: </a >
322
335
323
336
* http://programmers.stackexchange.com/questions/46716/what-technical-details-should-a-programmer-of-a-web-application-consider-before
324
337
* http://www.nczonline.net/blog/2010/01/05/interviewing-the-front-end-engineer/
325
338
* http://css-tricks.com/interview-questions-css/
339
+ * http://davidshariff.com/quiz/
340
+ * http://blog.sourcing.io/interview-questions
0 commit comments