html structure:
<ul>
<li>
<div class="show">
<img src="1.png" alt="">
1
</div>
<div class="hide">
1
</div>
</li>
<li>
<div class="show">
<img src="2.png" alt="">
2
</div>
<div class="hide">
2
</div>
</li>
<li>
<div class="show">
<img src="3.png" alt="">
3
</div>
<div class="hide">
3
</div>
</li>
</ul>
because most of the structural content is data that does not need to change, the method of writing directly to death is adopted, and no loop is used. The page structure is to display all show-style div, under all li tags by default, so how to click the corresponding li tag to show the hide-style div while other hide-style div is hidden? Now how to achieve through the vue data-driven idea?