面试题

sixth interview

2020-05-22  本文已影响0人  林不羁吖

1.js数据类型

1.1 null和undefined的区别

null表示没有对象,即该处不应该有值

1) 作为函数的参数,表示该函数的参数不是对象

2) 作为对象原型链的终点

undefined表示缺少值,即此处应该有值,但没有定义

1)定义了形参,没有传实参,显示undefined

2)对象属性名不存在时,显示undefined

3)函数没有写返回值,即没有写return,拿到的是undefined

4)写了return,但没有赋值,拿到的是undefined

null和undefined转换成number数据类型

1.1.1 他们转化为数值的结果

0 NaN

2.防抖和节流函数的原理

3.属性简洁表达式

4.同步和异步的区别

5.引用类型怎么存储的

6.vuex怎么用的

6.1 vuex中的辅助(工具)函数

mapState
mapGetters:将store中的getter映射到局部计算属性
mapMutations:使用mapMutations辅助函数将组件中的methods映射为store.commit调用。
mapAction:使用mapActions辅助函数将组件的methods映射成store.dispatch调用

7.diff算法原理

8.双向绑定的原理

9.在项目中封装的最印象深刻的组件,用了哪些方法

10.优化长列表,虚拟列表

https://www.cnblogs.com/imwtr/p/10428819.html
https://blog.csdn.net/QQ729533020/article/details/99740494?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase
https://blog.csdn.net/superermiao/article/details/105426843?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-2
https://blog.csdn.net/qq_37818095/article/details/102954854?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-2

11.v-if和v-for的区别

12.computed和watch的区别

上一篇 下一篇

猜你喜欢

热点阅读