The example in this article describes the solution to the invalid style.display="" in js. Share it with everyone for your reference. The specific solutions are as follows:
1. Problem description:
In js, we sometimes want to dynamically control the display or hiding of a div or more operations, but if we style.display="", it may have no effect.
Look at the following piece of code: