1. Requirements: suppose the page has a hundred li tags with two states, one is hidden (display:none), the other is displayed on the page (display:block);
2. Question: I want to get the quantity hidden and displayed. Can I traverse it directly?
3. Additional conditions: the company"s requirements are more complex, so there are many possibilities for li tags to hide. If you add a class name to the hidden one, then many possibilities need to add a class name. So do you want to find out whether there are li tags for display:none and display:block by directly traversing the page?