<tbody?id="show-blog-type-module"?onclick="return?clickTr(event)"?>
<tr?v-for="(blogType,index)?in?blogTypes">
<td>{{index++}}</td>
<td>{{blogType.id}}</td>
<td>{{blogType.name}}</td>
<td>{{blogType.detail}}</td>
<td>{{blogType.blogs.length}}
<a?class="pointer"?v-on:click="showBlogs">
<span?class="glyphicon?glyphicon-resize-full"></span>
</a>
</td>
<td>
<a?class="pointer">
<span?class="glyphicon?glyphicon-edit"??title="編輯"></span>
</a>
</td>
<td>
<a?:href="'manager/blogType/delete?id='+blogType.id">
<span?class="glyphicon?glyphicon-trash"?title="刪除"></span>
</a>
</td>
<td>
<a?:href="'blog/type?id='+blogType.id">
<span?class="glyphicon?glyphicon-link"?title="瀏覽"></span>
</a>
</td>
</tr>?
?? </tbody>我想在這個循環(huán)的tr中做一個手風琴的效果,如果想在表格中用v-for一次渲染兩列<xxx?v-for="(blogType,index)?in?blogTypes">
????<tr></tr>
????<tr></tr>
</xxx>但是這樣會vue報錯 v-for 不會渲染應為瀏覽器識別不了xxx標簽。敢問各位大俠有什么好方法嗎?
vue.js 的 v-for列表渲染問題
暴躁的代碼
2017-06-13 11:04:31