WeChat Mini Programs: when you click the button, the content that corresponds to the button will be displayed, and the rest of the content will be hidden. What should I do?

for example: when I click the button for all the tags, I will display the contents corresponding to all the tags


wx:if,vue can also v-if/show


save a field to store the status of each tag, such as label: [false,false,true] , when rendering, use wx:if to show the hidden
tag. When you click to get the current click subscript to change the state of the corresponding subscript of the array, and traverse the array to change other data

.
Menu