0
点赞
收藏
分享

微信扫一扫

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

小沙坨 2022-03-11 阅读 57
前端

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 条评论