issues
search
ReinerLau1
/
Blog
Just a blog
MIT License
0
stars
0
forks
source link
v-if 和 v-show 的区别
#327
Closed
ReinerLau1
closed
2 years ago
ReinerLau1
commented
2 years ago
v-if
在编译过程中会被转化成三元表达式
条件不满足时不渲染此节点
ReinerLau1
commented
2 years ago
v-show
会被编译成指令
条件不满足时控制样式
display:none
将对应节点隐藏
v-if