Skip to content

Commit b733a99

Browse files
committed
📝 update docs
1 parent 615667f commit b733a99

File tree

11 files changed

+273
-6
lines changed

11 files changed

+273
-6
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
欢迎拍砖,一起刷题,涨姿势,get新技能,找到好工作。
44

5-
<a target='_blank' rel='nofollow' href='https://app.codesponsor.io/link/dNi76fLkGGXZ8SdoDsJnDuDS/paddingme/Front-end-Web-Development-Interview-Question'>
6-
<img alt='Sponsor' width='888' height='68' src='https://app.codesponsor.io/embed/dNi76fLkGGXZ8SdoDsJnDuDS/paddingme/Front-end-Web-Development-Interview-Question.svg' />
7-
</a>
85

96

107
## 前端笔试面试题部分
@@ -40,7 +37,7 @@
4037
## 前端面经部分
4138

4239

43-
1. [面试前端工程师](/interview/1.md)
40+
1. [面试前端工程师](/interview/1.md)
4441
2. [知乎|web前端开发方向校招考什么](http://www.zhihu.com/question/26188893) :arrow_upper_right:
4542
3. [知乎|腾讯web前端方向实习笔试准备](http://www.zhihu.com/question/20966351/answer/24401878) :arrow_upper_right:
4643
4. [如何在面试中识别一个坏老板](http://get.jobdeer.com/6384.get/) :arrow_upper_right:
@@ -59,3 +56,10 @@
5956
5. [如何写打动人的「个人简历」](http://mp.weixin.qq.com/s?__biz=MzA5NDY0ODkxNA==&mid=200173772&idx=1&sn=895a5c66548c1b4a72153b2217350ca1&scene=4) @[rank](https://www.zhihu.com/people/rank) :arrow_upper_right:
6057
6. [使用 vue 生成漂亮的简历](https://github.com/salomonelli/best-resume-ever) :arrow_upper_right:
6158

59+
60+
61+
62+
<a target='_blank' rel='nofollow' href='https://app.codesponsor.io/link/dNi76fLkGGXZ8SdoDsJnDuDS/paddingme/Front-end-Web-Development-Interview-Question'>
63+
<img alt='Sponsor' width='888' height='68' src='https://app.codesponsor.io/embed/dNi76fLkGGXZ8SdoDsJnDuDS/paddingme/Front-end-Web-Development-Interview-Question.svg' />
64+
</a>
65+

en/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
2-
31
- [tech-interview-handbook](https://github.com/yangshun/tech-interview-handbook)
2+
- [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)

questions/alogorithms,md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- [ES6的数据结构与算法](https://www.talkingcoder.com/article/6374220543809234154)

questions/css.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# CSS 相关问题
2+
3+
4+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
5+
6+
* CSS 中类 (classes) 和 ID 的区别。
7+
* 请问 "resetting" 和 "normalizing" CSS 之间的区别?你会如何选择,为什么?
8+
* 请解释浮动 (Floats) 及其工作原理。
9+
* 描述`z-index`和叠加上下文是如何形成的。
10+
* 请描述 BFC(Block Formatting Context) 及其如何工作。
11+
* 列举不同的清除浮动的技巧,并指出它们各自适用的使用场景。
12+
* 请解释 CSS sprites,以及你要如何在页面或网站中实现它。
13+
* 你最喜欢的图片替换方法是什么,你如何选择使用。
14+
* 你会如何解决特定浏览器的样式问题?
15+
* 如何为有功能限制的浏览器提供网页?
16+
* 你会使用哪些技术和处理方法?
17+
* 有哪些的隐藏内容的方法 (如果同时还要保证屏幕阅读器可用呢)?
18+
* 你用过栅格系统 (grid system) 吗?如果使用过,你最喜欢哪种?
19+
* 你用过媒体查询,或针对移动端的布局/CSS 吗?
20+
* 你熟悉 SVG 样式的书写吗?
21+
* 如何优化网页的打印样式?
22+
* 在书写高效 CSS 时会有哪些问题需要考虑?
23+
* 使用 CSS 预处理器的优缺点有哪些?
24+
* 请描述你曾经使用过的 CSS 预处理器的优缺点。
25+
* 如果设计中使用了非标准的字体,你该如何去实现?
26+
* 请解释浏览器是如何判断元素是否匹配某个 CSS 选择器?
27+
* 请描述伪元素 (pseudo-elements) 及其用途。
28+
* 请解释你对盒模型的理解,以及如何在 CSS 中告诉浏览器使用不同的盒模型来渲染你的布局。
29+
* 请解释 ```* { box-sizing: border-box; }``` 的作用, 并且说明使用它有什么好处?
30+
* 请罗列出你所知道的 display 属性的全部值
31+
* 请解释 inline 和 inline-block 的区别?
32+
* 请解释 relative、fixed、absolute 和 static 元素的区别
33+
* CSS 中字母 'C' 的意思是叠层 (Cascading)。请问在确定样式的过程中优先级是如何决定的 (请举例)?如何有效使用此系统?
34+
* 你在开发或生产环境中使用过哪些 CSS 框架?你觉得应该如何改善他们?
35+
* 请问你有尝试过 CSS Flexbox 或者 Grid 标准规格吗?
36+
* 为什么响应式设计 (responsive design) 和自适应设计 (adaptive design) 不同?
37+
* 你有兼容 retina 屏幕的经历吗?如果有,在什么地方使用了何种技术?
38+
* 请问为何要使用 `translate()` 而非 *absolute positioning*,或反之的理由?为什么?
39+
40+
41+
42+
43+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
44+

questions/fun.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# 趣味问题
2+
3+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
4+
5+
6+
* 你最近写过什么的很酷的项目吗?
7+
* 在你使用的开发工具中,最喜欢哪些方面?
8+
* 谁使你踏足了前端开发领域?
9+
* 你有什么业余项目吗?是哪种类型的?
10+
* 你最爱的 IE 特性是什么?
11+
* 你对咖啡有没有什么喜好?
12+
13+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
14+
15+
16+
* 你坚持一年以上的事情是什么?

questions/general.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
3+
# 常见问题
4+
5+
6+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
7+
8+
* 你在昨天/本周学到了什么?
9+
* 编写代码的哪些方面能够使你兴奋或感兴趣?
10+
* 你最近遇到过什么技术挑战?你是如何解决的?
11+
* 在制作一个网页应用或网站的过程中,你是如何考虑其 UI、安全性、高性能、SEO、可维护性以及技术因素的?
12+
* 请谈谈你喜欢的开发环境。
13+
* 你最熟悉哪一套版本控制系统?
14+
* 你能描述当你制作一个网页的工作流程吗?
15+
* 假若你有 5 个不同的样式文件 (stylesheets), 整合进网站的最好方式是?
16+
* 你能描述渐进增强 (progressive enhancement) 和优雅降级 (graceful degradation) 之间的不同吗?
17+
* 你如何对网站的文件和资源进行优化?
18+
* 浏览器同一时间可以从一个域名下载多少资源?
19+
* 有什么例外吗?
20+
* 请说出三种减少页面加载时间的方法。(加载时间指感知的时间或者实际加载时间)
21+
* 如果你参与到一个项目中,发现他们使用 Tab 来缩进代码,但是你喜欢空格,你会怎么做?
22+
* 请写一个简单的幻灯效果页面。
23+
* 如果今年你打算熟练掌握一项新技术,那会是什么?
24+
* 请谈谈你对网页标准和标准制定机构重要性的理解。
25+
* 什么是 FOUC (无样式内容闪烁)?你如何来避免 FOUC?
26+
* 请解释什么是 ARIA 和屏幕阅读器 (screenreaders),以及如何使网站实现无障碍访问 (accessible)。
27+
* 请解释 CSS 动画和 JavaScript 动画的优缺点。
28+
* 什么是跨域资源共享 (CORS)?它用于解决什么问题?
29+
30+
31+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)

questions/html.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# HTML 相关问题
2+
3+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
4+
5+
6+
* `doctype`(文档类型) 的作用是什么?
7+
* 浏览器标准模式 (standards mode) 、几乎标准模式(almost standards mode)和怪异模式 (quirks mode) 之间的区别是什么?
8+
* HTML 和 XHTML 有什么区别?
9+
* 如果页面使用 'application/xhtml+xml' 会有什么问题吗?
10+
* 如果网页内容需要支持多语言,你会怎么做?
11+
* 在设计和开发多语言网站时,有哪些问题你必须要考虑?
12+
* 使用 `data-` 属性的好处是什么?
13+
* 如果把 HTML5 看作做一个开放平台,那它的构建模块有哪些?
14+
* 请描述 `cookies``sessionStorage``localStorage` 的区别。
15+
* 请解释 `<script>``<script async>``<script defer>` 的区别。
16+
* 为什么通常推荐将 CSS `<link>` 放置在 `<head></head>` 之间,而将 JS `<script>` 放置在 `</body>` 之前?你知道有哪些例外吗?
17+
* 什么是渐进式渲染 (progressive rendering)?
18+
* 你用过哪些不同的 HTML 模板语言?
19+
20+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)

questions/http.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# 网络相关问题
2+
3+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
4+
5+
* 为什么传统上利用多个域名来提供网站资源会更有效?
6+
* 请尽可能完整得描述从输入 URL 到整个网页加载完毕及显示在屏幕上的整个流程。
7+
* Long-Polling、Websockets 和 Server-Sent Event 之间有什么区别?
8+
* 请描述以下 request 和 response headers:
9+
* Diff. between Expires, Date, Age and If-Modified-...
10+
* Do Not Track
11+
* Cache-Control
12+
* Transfer-Encoding
13+
* ETag
14+
* X-Frame-Options
15+
* 什么是 HTTP method?请罗列出你所知道的所有 HTTP method,并给出解释。
16+
* 请解释 HTTP status 301 与 302 的区别?
17+
18+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)

questions/js.md

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# JS 相关问题
2+
3+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
4+
5+
* 请解释事件代理 (event delegation)。
6+
* 请解释 JavaScript 中 `this` 是如何工作的。
7+
* 请解释原型继承 (prototypal inheritance) 的原理。
8+
* 你怎么看 AMD vs. CommonJS?
9+
* 请解释为什么接下来这段代码不是 IIFE (立即调用的函数表达式):`function foo(){ }();`.
10+
* 要做哪些改动使它变成 IIFE?
11+
* 描述以下变量的区别:`null``undefined``undeclared`
12+
* 该如何检测它们?
13+
* 什么是闭包 (closure),如何使用它,为什么要使用它?
14+
* 请举出一个匿名函数的典型用例?
15+
* 你是如何组织自己的代码?是使用模块模式,还是使用经典继承的方法?
16+
* 请指出 JavaScript 宿主对象 (host objects) 和原生对象 (native objects) 的区别?
17+
* 请指出以下代码的区别:`function Person(){}``var person = Person()``var person = new Person()`
18+
* `.call``.apply` 的区别是什么?
19+
* 请解释 `Function.prototype.bind`
20+
* 在什么时候你会使用 `document.write()`
21+
* 请指出浏览器特性检测,特性推断和浏览器 UA 字符串嗅探的区别?
22+
* 请尽可能详尽的解释 Ajax 的工作原理。
23+
* 使用 Ajax 都有哪些优劣?
24+
* 请解释 JSONP 的工作原理,以及它为什么不是真正的 Ajax。
25+
* 你使用过 JavaScript 模板系统吗?
26+
* 如有使用过,请谈谈你都使用过哪些库?
27+
* 请解释变量声明提升 (hoisting)。
28+
* 请描述事件冒泡机制 (event bubbling)。
29+
* "attribute" 和 "property" 的区别是什么?
30+
* 为什么扩展 JavaScript 内置对象不是好的做法?
31+
* 请指出 document load 和 document DOMContentLoaded 两个事件的区别。
32+
* `==``===` 有什么不同?
33+
* 请解释 JavaScript 的同源策略 (same-origin policy)。
34+
* 如何实现下列代码:
35+
```javascript
36+
[1,2,3,4,5].duplicator(); // [1,2,3,4,5,1,2,3,4,5]
37+
```
38+
* 什么是三元表达式 (Ternary expression)?“三元 (Ternary)” 表示什么意思?
39+
* 什么是 `"use strict";` ? 使用它的好处和坏处分别是什么?
40+
* 请实现一个遍历至 `100` 的 for loop 循环,在能被 `3` 整除时输出 **"fizz"**,在能被 `5` 整除时输出 **"buzz"**,在能同时被 `3``5` 整除时输出 **"fizzbuzz"**
41+
* 为何通常会认为保留网站现有的全局作用域 (global scope) 不去改变它,是较好的选择?
42+
* 为何你会使用 `load` 之类的事件 (event)?此事件有缺点吗?你是否知道其他替代品,以及为何使用它们?
43+
* 请解释什么是单页应用 (single page app), 以及如何使其对搜索引擎友好 (SEO-friendly)。
44+
* 你使用过 Promises 及其 polyfills 吗? 请写出 Promise 的基本用法(ES6)。
45+
* 使用 Promises 而非回调 (callbacks) 优缺点是什么?
46+
* 使用一种可以编译成 JavaScript 的语言来写 JavaScript 代码有哪些优缺点?
47+
* 你使用哪些工具和技术来调试 JavaScript 代码?
48+
* 你会使用怎样的语言结构来遍历对象属性 (object properties) 和数组内容?
49+
* 请解释可变 (mutable) 和不变 (immutable) 对象的区别。
50+
* 请举出 JavaScript 中一个不变性对象 (immutable object) 的例子?
51+
* 不变性 (immutability) 有哪些优缺点?
52+
* 如何用你自己的代码来实现不变性 (immutability)?
53+
* 请解释同步 (synchronous) 和异步 (asynchronous) 函数的区别。
54+
* 什么是事件循环 (event loop)?
55+
* 请问调用栈 (call stack) 和任务队列 (task queue) 的区别是什么?
56+
* 解释 `function foo() {}``var foo = function() {}` 用法的区别
57+
58+
59+
*问题:`foo`的值是什么?*
60+
```javascript
61+
var foo = 10 + '20';
62+
```
63+
64+
*问题:如何实现以下函数?*
65+
```javascript
66+
add(2, 5); // 7
67+
add(2)(5); // 7
68+
```
69+
70+
*问题:下面的语句的返回值是什么?*
71+
```javascript
72+
"i'm a lasagna hog".split("").reverse().join("");
73+
```
74+
75+
*问题:`window.foo`的值是什么?*
76+
```javascript
77+
( window.foo || ( window.foo = "bar" ) );
78+
```
79+
80+
*问题:下面两个 alert 的结果是什么?*
81+
```javascript
82+
var foo = "Hello";
83+
(function() {
84+
var bar = " World";
85+
alert(foo + bar);
86+
})();
87+
alert(foo + bar);
88+
```
89+
90+
*问题:`foo.length`的值是什么?*
91+
```javascript
92+
var foo = [];
93+
foo.push(1);
94+
foo.push(2);
95+
```
96+
97+
*问题:`foo.x`的值是什么?*
98+
```javascript
99+
var foo = {n: 1};
100+
var bar = foo;
101+
foo.x = foo = {n: 2};
102+
```
103+
104+
*问题:下面代码的输出是什么?*
105+
```javascript
106+
console.log('one');
107+
setTimeout(function() {
108+
console.log('two');
109+
}, 0);
110+
console.log('three');
111+
```
112+
113+
114+
115+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)

questions/performance.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# 性能优化
22

3+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
4+
5+
* 你会用什么工具来查找代码中的性能问题?
6+
* 你会用什么方式来增强网站的页面滚动效能?
7+
* 请解释 layout、painting 和 compositing 的区别。
8+
9+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
10+
11+
312

413
- [Yahoo Best Practices for Speeding Up Your Web Site](https://developer.yahoo.com/performance/rules.html)
514
- [Google 使用 RAIL 模型评估性能](https://developers.google.com/web/fundamentals/performance/rail)

questions/test.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# 测试 相关问题
2+
3+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)
4+
5+
* 对代码进行测试的有什么优缺点?
6+
* 你会用什么工具测试你的代码功能?
7+
* 单元测试与功能/集成测试的区别是什么?
8+
* 代码风格 linting 工具的作用是什么?
9+
10+
Form [Front-end-Developer-Interview-Questions](https://github.com/h5bp/Front-end-Developer-Interview-Questions)

0 commit comments

Comments
 (0)