https://github.com/dai1254473705/fe-interview
前端笔记
https://github.com/dai1254473705/fe-interview
css dumi html javascript react
Last synced: 6 months ago
JSON representation
前端笔记
- Host: GitHub
- URL: https://github.com/dai1254473705/fe-interview
- Owner: dai1254473705
- License: mit
- Created: 2018-08-25T05:56:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-08T03:21:35.000Z (9 months ago)
- Last Synced: 2025-04-04T10:03:43.678Z (6 months ago)
- Topics: css, dumi, html, javascript, react
- Language: JavaScript
- Homepage: https://fe.netyali.cn/
- Size: 461 MB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 总结遇到过得前端面试题
> 如有不对的请指正## 问题
##### 1.使用css实现一个自适应浏览器大小且宽高比为2:1 的块;
> [test-1.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-1.html)
##### 2.编写getQueryObject()的函数。返回URL中查询字符串对象;例如:abc.com?a=1&bb=22&ccc=333,返回{a:1,bb:22,ccc:333}(使用正则实现)
> [test-2.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-2.html)
##### 3.请描述原生js里bind函数的作用,什么场景需要用到它,并手写Function.bind函数
> [test-3.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-3.html)
##### 4.程序输出题,请写出运行结果及思路
> [test-4.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-4.html)
##### 5.请分别说明利用js数组模拟队列和堆栈的方法
> [test-5.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-5.html)
##### 6.请描述下原生js的事件。(包括但不限于:事件的不同阶段,应用场景,事件代理,绑定和解绑,浏览器兼容等)
> [test-6.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-6.html)
##### 7.使用jQuery选择器找出所有p标签下的第一个a标签中的属性名 为na且值为“b”开头的元素(即输出b1和b4)
> [test-7.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-7.html)
##### 8.通过css实现左侧2个块宽度固定,高度各50%,右侧宽度自适应
> [test-8.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-8.html)
##### 9.this指向问题,输出num,obj,num
> [test-9.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-9.html)
##### 10.快速排序
> [test-10.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-10.html)
##### 11.css实现两列布局
> [test-11.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-11.html)
##### 12.使用css实现一个空心箭头和一个实心箭头
> [test-12.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-12.html)
##### 13.
> [test-12.html](https://github.com/dai1254473705/interview-questions/blob/master/views/test-13.html)