Solve the problem of using/displaying in different places on the same page if else

My method is to add another same content to him, and make a judgment outside it,

similar to if elseif

 

 This can also be realized, but the code is redundant~ It can be realized, right?

Guess you like

Origin blog.csdn.net/weixin_64630810/article/details/127105583