The first method: The principle is relatively simple by judging whether it is currently hidden or displayed, and use this to judge.
]
The second type : It’s simpler, but the principle is not obvious at a glance
Friends who can explain it in detail can leave a message and we will add more
If you need to introduce external Js, you need to refresh to execute ]