Skip to content
New issue

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

hidden控制显示与隐藏 #149

Open
deepthan opened this issue Sep 17, 2021 · 0 comments
Open

hidden控制显示与隐藏 #149

deepthan opened this issue Sep 17, 2021 · 0 comments

Comments

@deepthan
Copy link
Owner

hidden控制显示与隐藏

//html
<div [hidden]="temp">显示</div>
<div [hidden]="!temp">隐藏</div>

//ts
temp = true;

这样第一个div是显示的,第二个是隐藏的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant