SOURCE

console 命令行工具 X clear

                    
>
console
var myapp=new Vue({
  el:'#app',
  data:{
    item:	[
      {"name":"jack0"},
      {"name":"jack1"},
      {"name":"jack2"},
    ],
    nowIndex:-1
  },
  methods:{
    del(i){
      alert(i);
      this.item.splice(i,1)
    }
  }
})
<div id='app'>
  <table border=1>
    <th>姓名</th><th>性别</th><th>操作</th>
    <tr v-for="(data,index) in item">
      <td>{{index}}</td><td>{{data.name}}</td><td v-on:click="del(index)">删除</td>
    </tr>
  </table>
</div>

本项目引用的自定义外部资源