v-show与v-if的区别

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

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