睡前十个问题回顾

92 阅读1分钟

1、css的垂直和居中

1.1、text的水平居中,text的垂直居中。

2.2、父盒子中子盒子的水平居中,父盒子中子盒子的垂直居中。

2、position属性

static absolute relative fixed sticky

3、overflow属性和overflow-x overflow-y

visible auto scroll hidden inherit

4、超出内容出现点点点

text-overflow: ellipse clip string(有兼容) overflow:hidden; white-space: nowrap

5、js的执行过程

启动 加载 执行/调用

启动:加载配置文件;加载:全局作用域/或者局部作用域声明函数和变量;调用:调用内从中声明的函数和变量。

6、import和export

export 变量 函数 对象 default+ 变量/函数/对象,直接导出,先声明再导出;import 带括号和不带括号

7、for循环的正序和逆序

length-1和>=0;0和小于length;i--位置的挪动

8、基于树模型的父子孙节点,通过key的调用,parant,children,向上查找,和向下遍历匹配。

9、XMLHttpRequest 实例对象创建,onReadyStateChange回调监听,state常量的引用

10、数组方法中,支持用户输入回调函数。forEach map filter some every reduce

11、标签class的命名 header body footer left- right- center- top- bottom- item-

12、flex的容器属性和项目属性

flex flex-direction flex-wrap flex-flow justify-content aligh-item align-content

order flex-grow flex-shrink flex-basic(length,auto) flex align-self