vue 三目运算

:class="followed ? 'btn-success':'btn-secondary'"
原文地址:https://www.cnblogs.com/qiu2841/p/8990917.html