快手商业化研发前端实习面经
<style> .classA { color: blue; } .classB { color: red; } </style> <p class="classB classA">123</p>
p的颜色是bule还是red?- div.
margin-top: 30%
padding-top: 30%是基于什么的百分比 let a = 0; console.log(a); console.log(b); let b = 0; console.log(c); function c() {}
输出什么?function a(b, c) { function b(){}; alert(b); } a(1, 2);
function a(b, c) { var b; alert(b); } a(1, 2);
输出什么function Parent() {} var p = new Parent()
写下p、Parent、Function、Object的原型链console.log(1); setTimeout(() => { console.log(2); }); new Promise(resolve => { console.log(5); resolve(); console.log(6); }).then(() => { console.log(7); }); Promise.resolve().then(() => { console.log(8); process.nextTick(() => { console.log(9); }); });
输出什么?- 说说vue的scoped
- vue父组件和子组件的生命周期
- computed和watch的区别
- vue router的hash和history的区别
- vue数组用下标更改元素会更新视图吗?那用什么方法可以更新?
- 说说http缓存
- css垂直居中方法
- Element-UI要覆盖默认样式怎么做
- 算法题:(LC. 384)打乱数组(只需要打乱功能)