Vue - 如何用每个 tr 两个数据渲染 table

Vue - How to render a table with two data per tr

作为附件,我如何使用 v-for 或 v-repeat 或其他东西来做到这一点? 感谢您的帮助。

How to render a table with two data per tr

JSON 数据格式: [ 'a', 'b', 'c' ]

这是一个CSS问题,您只需正常渲染table即可。关键CSS是:

tr {
  float: left;
}
tr:nth-child(2n+1) {
  clear: left;
}

看这个例子:http://codepen.io/CodinCat/pen/peKeNw?editors=0110