前端面试—字节

171 阅读1分钟

1. 网络请求的方法,他们具体是干什么用的
2. dns解析的过程
3. css盒子模型,问如下场景两个盒子的大小及为什么

  <style>
    .box1 {
      box-sizing: border-box;
      width: 100px;
      height: 100px;
      background-color: black;
      padding: 2px;
      margin: 2px;
      border: 2px solid #ccc;
    }

    .box2 {
      box-sizing: content-box;
      width: 100px;
      height: 100px;
      background-color: pink;
      padding: 2px;
      margin: 2px;
      border: 2px solid blue;
    }
  </style>
</head>
<body>
  <div class="box1"></div>
  <div class="box2"></div>
</body>

4. flex布局常见属性,flex实现一个父盒子中两个子盒子左上右下
5. es6中的promise,promise中的一些静态方法
6. vue爷孙组件传递数据
7. 介绍一下vuex
8. 最长公共子串的长度(编程题 讲代码及代码时间复杂度)