前端最强面经汇总

花了很长时间整理的前端面试资源,喜欢请大家不要吝啬star~

别只收藏,点个赞,点个star再走哈~

持续更新中……,可以关注下github

项目地址

https://github.com/abc-club/free-resources/blob/master/INTERVIEW.md

求star!!! 求star!!! 求star!!!

面试秘籍

面试题集

面试题

面试技巧

面试经验

github面试题仓库

  • https://github.com/jwasham/coding-interview-university/blob/master/translations/README-cn.md([译] Coding Interview University 一套完整的学习手册帮助自己准备 Google 的面试)
  • https://github.com/haizlin/fe-interview
  • https://github.com/30-seconds/30-seconds-of-interviews
  • https://github.com/xiaomuzhu/front-end-interview
  • https://github.com/yisainan/web-interview
  • https://github.com/woai3c/Front-end-basic-knowledge
  • https://github.com/qiu-deqing/FE-interview
  • https://github.com/poetries/FE-Interview-Questions
  • https://github.com/azl397985856/fe-interview

薪资福利

招聘官网

如果你是面试官

待遇

题目

js

  1. getcomputedstyle和style的区别
1.只读与可写
  getComputedStyle方法是只读的,只能获取样式,不能设置;而element.style能读能写,能屈能伸。
2.获取的对象范围
  getComputedStyle方法获取的是最终应用在元素上的所有CSS属性对象(即使没有CSS代码,也会把默认的祖宗八代都显示出来);
  而element.style只能获取元素style属性中的CSS样式。
  因此对于一个光秃秃的元素<p>,getComputedStyle方法返回对象中length属性值(如果有)就是190+(据我测试FF:192, IE9:195, Chrome:253, 不同环境结果可能有差异), 
  而element.style就是0。
3.作用
  getComputedStyle方法有一个很重要的,类似css()方法没有的功能——获取伪类元素样式
4.兼容性
  getComputedStyle方法IE6~8是不支持的


本篇文章由一文多发平台ArtiPub自动发布

原文地址:https://www.cnblogs.com/aoping/p/11722700.html