字节跳动前端面试分享

date
Sep 13, 2023
slug
frontend_interview_bytedance
status
Published
tags
前端
interview
frontend
summary
面试的是字节的tik tok组。
type
Post
  1. reactjs里为啥不能在if,for里调用钩子
    1. 因为hooks为了在函数组件中引入状态,维护了一个有序表
  1. useEffect怎么用
  1. 水平垂直居中
    1. flex,绝对定位,transform, 块级元素水平可以用margin:auto,内联元素垂直居中lineHeight=height
  1. setTimeout, async 打印题
  1. 最大连续子数组和
 

© bai xin 2021 - 2026

沪ICP备20011311号-1