整理前端面试题的自己理解

小沙坨

关注

阅读 57

2022-03-11

JS

数据类型

重绘和重排(回流)

js闭包

Dom事件委托

vue

vue 中data 为啥是函数不是对象

插槽有几种类型

值传递

computed 和 watch

data(){
	num:1,
	price:10
},
computed(){
	totalPrice(){
		return this.num*this.price
	}
},
watch: {
   cityName: {
     handler(newName, oldName) {
     // ...
   },
   deep: true,
   immediate: true
   }
 } 

nextTick

路由守卫

精彩评论(0)

0 0 举报