我正在尝试使用如下表达式有条件地将类应用于我的组件: .map(function(list, index) { <div className={"myClass " + (position === index ? 'active' : null)}> }
確定! 回上一頁