isdaviddong
1/10/2017 - 11:32 AM

aspnetwithvuebinding\index.html

<tbody>
    <tr v-for="item in items">
        <td>
            <button class="btn  btn-outline btn-primary btn-xs" v-on:click="edit(item)">編輯</button>
            <button class="btn  btn-outline btn-primary btn-xs" v-on:click="remove(item)">刪除</button>
        </td>
        <td>
            <span>{{item.StudentName}}</span>
        </td>
        <td>
            <span>{{item.Height}}</span>
        </td>
        <td>
            <span>{{item.Weight}}</span>
        </td>
        <td>
            <span>{{item.BMIValue}}</span>
        </td>
        <td>
            <span>{{item.Memo}}</span>
        </td>
    </tr>
</tbody>