关于数组排序问题
divid=' app ' ultemplatev-for=' ii nitems ' liindexis { $ index } }/lilicontentis { { I } }/Li/template/ul/dii 如果data属性是数组,则b: '2',c:'3'}}/Script可以使用v-for遍历,但显然是数组
推送)添加到数组末尾
pop ) )数组末尾取出
shift ) )取出数组的开头
添加到unshift ()数组的开头
删除并插入splice ()
sort ) )排序
reverse ) )数组顺序相反
使用上述方法更改数组时,渲染内容将实时更新。