2021前端面试总结

2021-09-25  本文已影响0人  keepWriteCode

1.js基础

2.Object.prototype.toString.call()


image.png

其他判断方法:https://juejin.cn/post/6934318149542084615

2.css基础

// 1
.wrapper {
  position: relative;
  .box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
  }
}

// 2
.wrapper {
  position: relative;
  .box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

// 3
.wrapper {
  .box {
    display: flex;
    justify-content:center;
    align-items: center;
    height: 100px;
  }
}

// 4
.wrapper {
  display: table;
  .box {
    display: table-cell;
    vertical-align: middle;
  }
}

https://juejin.cn/post/6844904030485872654

3.HTML5

4.react基础

5.网络基础

6.浏览器

https://mp.weixin.qq.com/s/vIKDUrbuxVNQMi_g_fiwUA

7.跨平台

https://mp.weixin.qq.com/s/S6sRe4oyeMiVfTpgwCmE3w

8.强烈推荐的三篇面试总结:

9.面真题

上一篇 下一篇

猜你喜欢

热点阅读