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
}
}