We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
答案:
v-show 指令是通过修改元素的 display 的 CSS 属性让其显示或者隐藏
v-if 指令是直接销毁和重建 DOM 达到让元素显示和隐藏的效果
The text was updated successfully, but these errors were encountered:
v-show 有着更高的初始渲染消耗,v-if 有更高的切换消耗,需要频繁切换的适合用 v-show ,不需要频繁切换的适合 v-if
Sorry, something went wrong.
v-if 会销毁组件或者重新初始化组件
No branches or pull requests
答案:
v-show 指令是通过修改元素的 display 的 CSS 属性让其显示或者隐藏
v-if 指令是直接销毁和重建 DOM 达到让元素显示和隐藏的效果
The text was updated successfully, but these errors were encountered: