v-if中key的作用:Vue 会尽可能高效地渲染元素,通常会复用已有元素而不是从头开始渲染,可以使用key已避免这种情况发生;v-if控制元素的销毁和重建;有惰性,直到为真时,渲染条件块;v-show控制元素的显示和隐藏;