v-show与v-if的区别

v-show有dom节点像display:none,而v-if隐藏的则没有dom节点。两个共同点都可以显隐

posted @ 2019-07-30 13:01  sweeeper  阅读(131)  评论(0编辑  收藏  举报