芸擎网络 前端实习(已 oc)
CSS
- 定位有哪几种,分别是什么
- 无序列表内容
- 水平垂直居中
- margin 为什么固定宽高不可以(相对于父元素)
- flex 如何在子级设置属性实现
- 无序列表内容
- 伪类和伪元素
JavaScript
- 数据类型
- 闭包
- 防抖和节流
- async await
- 事件循环
- 输出
async function async1() {
console.log('async1 start');
await async2();
console.log('asnyc1 end');
}
async function async2() {
console.log('async2');
}
console.log('script start');
setTimeout(() => {
console.log('setTimeOut');
}, 0);
async1();
new Promise(function (reslove) {
console.log('promise1');
reslove();
}).then(function () {
console.log('promise2');
})
// script start
// async1 start
// async2
// promise1
// async1 end
// promise2
// setTimeout- 数组哪些方***改变原数组
Vue
- 生命周期
- 如何在 created 操作 DOM
- 组件通信
Ps. 二面忘记记录了
#前端实习##前端面经#
