riot中如何动态控制标签的类名呢?可以是类名:表达式
<tab>
<div each="{item, index in tablelist}" onclick="{tableClick.bind(this, index, item.type)}">
<span class="tablist-item {'active': index === presentIndex}" >
<a href="#">{item.subTitle}</a>
</span>
</div>
<script>
this.presentIndex = 0;
this.tableClick = (index, type) => {
this.presentIndex = index;
......
}
</script>
</tab>