如题,我每次点击都是删除第一行元素~~!!
{{lists.ID}}{{lists.user}}{{lists.suerNub}}{{lists.desbe}}new Vue({
el:'#appp',
data:{
columnList:[{
number:'编号',
IDname:'角色名',
nameNub:'角色编码',
describe:'描述',
operation:'操作'
}],
inforList:[
{
ID:'1',
user:'超级管理员1',
suerNub:'luozi',
desbe:'超级管理员',
operat:{
del:'删除',
edit:'编辑'
}
},
{
ID:'2',
user:'超级管理员2',
suerNub:'luozi',
desbe:'超级管理员',
operat:{
del:'删除',
edit:'编辑'
}
},
]
},
methods:{
delt:function(index){
this.inforList.splice(index,1);
}
}
});