The internal v-for of the list loop in vue is displayed according to different states, switching more frequently, using v-if or v-show?

data display, but the change is faster, is it better to use v-if or v-show?

Apr.18,2022

it is best to use calculation attributes for filtering You can refer to the official document: ide/-sharp%E9%81%BF%E5%85%8D-v-if-%E5%92%8C-v-for-%E7%94%A8%E5%9C%A8%E4%B8%80%E8%B5%B7-%E5%BF%85%E8%A6%81" rel=" nofollow noreferrer "> avoid using v-if and v-for together

Menu