vue ternary expression

Equivalent to determine the language in python

Formula: 1 == 1? 'A': ''

example:

: Class = " i == p 'active':? '' "     # If i is equal to p then with active

 

Guess you like

Origin www.cnblogs.com/lishanglin/p/12458928.html