step 0 准备
(此例子为用户管理系统)
template中的代码为:
<template>
<div class="customers container">
<h1 class="page-header">用户管理系统</h1>
<table class="table table-striped">
<thead>
<tr>
<th>编号</th>
<th>姓名</th>
<th>年龄</th>
</tr>
</thead>
<tbody>
<tr v-for="customer in customers" v-bind:key="customer">
<td>{
{customer.id}} </td>
<td>{
{customer.name}} </td>
<td>{
{customer.age}} </td>
</tr>
</tbody>
</table>
</div>
</template>
还要自己准备一个json文件,