vue中vshow和vif的区别

v-show将元素隐藏是在dom节点上加style=’display:none’
v-if是直接从dom中去掉元素

原文地址:https://www.cnblogs.com/zhb/p/12817481.html